commit:     8c0866aa69f3b0c600d1f2f9ad7942f563409f4a
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  5 18:50:41 2018 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sat Jul  7 05:22:14 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=8c0866aa

gkeys actions.py: Exit smoothly if fetch failed to get a new file

Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 gkeys/gkeys/actions.py | 3 +++
 1 file changed, 3 insertions(+)

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:

Reply via email to