1
0
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:
Ludwig Nussel 2010-04-19 13:57:47 +02:00
parent d2ea7472cd
commit 3a1fc67698

View File

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