diff --git a/osc_plugin_dput/main.py b/osc_plugin_dput/main.py index 40bf8fb1bbed247de002da6880a59198efadfb0b..29e107af49135f5944d9ab92bf80cd6c2d56cf5f 100644 --- a/osc_plugin_dput/main.py +++ b/osc_plugin_dput/main.py @@ -205,7 +205,8 @@ def do_dput(self, subcmd, opts, *args): remote_dsc = Dsc(osc.core.streamfile(u, bufsize='line')) for entry in remote_dsc.get('Files'): - superseded.add(entry['name']) + if entry['name'] in remote_file_list: + superseded.add(entry['name']) superseded.add(f) elif f.endswith('.changes'):