Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598290 - app-crypt/gkeys-0.2: gkeys verify fails with --signature path argument
Summary: app-crypt/gkeys-0.2: gkeys verify fails with --signature path argument
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: gentoo-keys (show other bugs)
Hardware: All All
: Normal normal (vote)
Deadline: 2020-05-19
Assignee: Gentoo-keys project
URL: https://github.com/gentoo/gentoo-keys...
Whiteboard:
Keywords: InVCS, PMASKED
Depends on:
Blocks: 598276
  Show dependency tree
 
Reported: 2016-10-27 21:37 UTC by Zac Medico
Modified: 2020-05-23 09:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2016-10-27 21:37:40 UTC
From: Zac Medico <zmedico@gentoo.org>
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 @@ class Actions(ActionBase):
                             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(
--
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2016-10-27 21:50:27 UTC
merged, thank you
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-04-19 12:12:31 UTC
app-crypt/gkeys is last rited now.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-23 09:31:22 UTC
Removing.