1
0
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:
lethliel 2018-11-20 16:20:02 +01:00 committed by Marco Strigl
parent 39ae30bcc2
commit 2c905ad94f

View File

@ -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: