Skip to content
Snippets Groups Projects
Unverified Commit 19f09032 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Drop dead and unused code

parent ac0e27af
No related branches found
No related tags found
1 merge request!9Prevent failures when files referenced in .dsc are missing
Pipeline #98149 failed
......@@ -191,7 +191,6 @@ def do_dput(self, subcmd, opts, *args):
# Remove old files, but only those that are part of the Debian package
superseded = set()
retained = set()
downloaded = set()
for f in remote_file_list.keys():
if f.endswith('.dsc'):
......@@ -233,7 +232,7 @@ def do_dput(self, subcmd, opts, *args):
os.symlink(dsc_file, f)
package.addfile(f)
if opts.maintained_in_git and 'MAINTAINED_IN_GIT.txt' not in retained:
if opts.maintained_in_git:
open('MAINTAINED_IN_GIT.txt', 'w+').close()
package.addfile('MAINTAINED_IN_GIT.txt')
......@@ -242,9 +241,6 @@ def do_dput(self, subcmd, opts, *args):
# the source package
msg = f
for f in downloaded:
package.addfile(f)
if changes is not None:
f = dsc_or_changes_file.name
os.symlink(dsc_or_changes_file, f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment