From 3a1fc67698210d272919e4522f875749429f10d7 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 19 Apr 2010 13:57:47 +0200 Subject: [PATCH] unlink key file in case of failure --- osc/fetch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osc/fetch.py b/osc/fetch.py index e34897ae..d24dbe6f 100644 --- a/osc/fetch.py +++ b/osc/fetch.py @@ -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: