From 612138b2e129111d1088b2d180b58225bd378410 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Oct 2016 14:03:14 -0700 Subject: [PATCH] Actions._verify: support --signature path argument If the --signature argument refers to an existing file path, use it. This fixes an issue where signature verification would fail because the sig_path variable referred to None. --- gkeys/gkeys/actions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py index d51fb3f..b38db19 100644 --- a/gkeys/gkeys/actions.py +++ b/gkeys/gkeys/actions.py @@ -758,6 +758,8 @@ def _verify(self, args, key, messages=None): break else: signature = None + elif signature is not None and os.path.exists(signature): + sig_path = signature else: filepath = os.path.abspath(filepath) self.logger.debug(