commit:     7f42bd9d867372b75b4e1657ebc6552e9ef062e1
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 25 20:55:18 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon Aug  3 03:59:35 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=7f42bd9d

gkeys/actions.py: Fix a traceback when a filename does not have an extension

This will instead get the filename itself back.

 gkeys/gkeys/actions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

Reply via email to