mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 10:16:14 +01:00
unlink key file in case of failure
This commit is contained in:
parent
d2ea7472cd
commit
3a1fc67698
@ -233,6 +233,9 @@ class Fetcher:
|
||||
else:
|
||||
print "%s doesn't have a gpg key" % i
|
||||
|
||||
if os.path.exists(dest):
|
||||
os.unlink(dest)
|
||||
|
||||
l = i.rsplit(':', 1)
|
||||
# try key from parent project
|
||||
if len(l) > 1 and l[1] and not l[0] in buildinfo.projects:
|
||||
|
Loading…
Reference in New Issue
Block a user