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

Only mark existent remote files as superseded

parent b0cf5048
No related branches found
No related tags found
1 merge request!9Prevent failures when files referenced in .dsc are missing
......@@ -205,6 +205,7 @@ def do_dput(self, subcmd, opts, *args):
remote_dsc = Dsc(osc.core.streamfile(u, bufsize='line'))
for entry in remote_dsc.get('Files'):
if entry['name'] in remote_file_list:
superseded.add(entry['name'])
superseded.add(f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment