aboutsummaryrefslogtreecommitdiff
path: root/gkeys
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-07-25 13:55:18 -0700
committerBrian Dolbec <dolsen@gentoo.org>2015-08-02 20:59:35 -0700
commit7f42bd9d867372b75b4e1657ebc6552e9ef062e1 (patch)
tree839d01db24dbabf55dfb1cf93cea0e392c18d043 /gkeys
parentgkeys/gkeysinterface.py: Initial commit of an api consumer interface (diff)
downloadgentoo-keys-7f42bd9d867372b75b4e1657ebc6552e9ef062e1.tar.gz
gentoo-keys-7f42bd9d867372b75b4e1657ebc6552e9ef062e1.tar.bz2
gentoo-keys-7f42bd9d867372b75b4e1657ebc6552e9ef062e1.zip
gkeys/actions.py: Fix a traceback when a filename does not have an extension
This will instead get the filename itself back.
Diffstat (limited to 'gkeys')
-rw-r--r--gkeys/gkeys/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index 6610480..a4081c9 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -779,7 +779,7 @@ class Actions(object):
_unicode("ACTIONS: verify; local file %s") % filepath)
success = os.path.isfile(filepath)
if (not signature
- and '.' + filepath.rsplit('.', 1)[1] not in EXTENSIONS):
+ and '.' + filepath.rsplit('.', 1)[-1] not in EXTENSIONS):
success_fetch = False
for ext in EXTENSIONS:
sig_path = filepath + ext