diff --git a/osc_plugin_dput/main.py b/osc_plugin_dput/main.py index 29e107af49135f5944d9ab92bf80cd6c2d56cf5f..1ff6ed8a2eeefa185cfc380192624407761bd5f8 100644 --- a/osc_plugin_dput/main.py +++ b/osc_plugin_dput/main.py @@ -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)