aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2018-07-05 11:50:41 -0700
committerBrian Dolbec <dolsen@gentoo.org>2018-07-06 22:22:14 -0700
commit8c0866aa69f3b0c600d1f2f9ad7942f563409f4a (patch)
treed26304e523958e299ea75b9c462d9ae81b9d7f37
parentgkeys seedhandler.py: Simplify code, let verify() handle fetching (diff)
downloadgentoo-keys-8c0866aa69f3b0c600d1f2f9ad7942f563409f4a.tar.gz
gentoo-keys-8c0866aa69f3b0c600d1f2f9ad7942f563409f4a.tar.bz2
gentoo-keys-8c0866aa69f3b0c600d1f2f9ad7942f563409f4a.zip
gkeys actions.py: Exit smoothly if fetch failed to get a new file
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r--gkeys/gkeys/actions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index fd92a77..539ff26 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -834,6 +834,9 @@ class Actions(ActionBase):
climit=climit)
sig_path = fetcher.sig_path
messages.extend(msgs)
+ if not success:
+ self.logger.debug(_unicode("ACTIONS: _verify; File not downloaded, exiting... %s"), filepath)
+ return (False, messages)
elif signature is not None and os.path.exists(signature):
sig_path = signature
else: