Verified Commit 05dae355 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Don’t try to download _link files

updatefile() doesn’t work with _link files since meta=False by default,
and OBS gives 404 when this file is requested.

This workaround skips _link when it’s found, resulting in breaking the
link to the parent package. A proper fix would involve preserving _link,
but it’s not clear what is the best way to achieve that.

Signed-off-by: Andrej Shadura's avatarAndrej Shadura <>
parent e28f8944
......@@ -175,7 +175,8 @@ def do_dput(self, subcmd, opts, proj_name, dsc_or_changes_file):
for f in retained:
print('retaining non-source file: %r' % f)
if not os.path.exists(f):
# this will undo branch links since _link needs meta=0 when fetching
if not os.path.exists(f) and f != '_link':
print('fetching %r from server' % f)
package.updatefile(f, latest_revision)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment