diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2018-07-05 11:50:41 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2018-07-06 22:22:14 -0700 |
commit | 8c0866aa69f3b0c600d1f2f9ad7942f563409f4a (patch) | |
tree | d26304e523958e299ea75b9c462d9ae81b9d7f37 | |
parent | gkeys seedhandler.py: Simplify code, let verify() handle fetching (diff) | |
download | gentoo-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.py | 3 |
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: |