mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
do not add key to buildinfo if not existent
fixes issue: https://github.com/openSUSE/osc/issues/471 Add the key_path only to buildinfo(bi) if it exists (not try_parent)
This commit is contained in:
parent
39ae30bcc2
commit
2c905ad94f
@ -272,7 +272,7 @@ class Fetcher:
|
||||
elif not self.offline:
|
||||
OscFileGrabber().urlgrab(url, dest)
|
||||
# not that many keys usually
|
||||
if i not in buildinfo.prjkeys:
|
||||
if i not in buildinfo.prjkeys and not try_parent:
|
||||
buildinfo.keys.append(dest)
|
||||
buildinfo.prjkeys.append(i)
|
||||
except KeyboardInterrupt:
|
||||
|
Loading…
Reference in New Issue
Block a user