diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2015-06-22 06:41:29 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2015-06-22 06:41:29 -0700 |
commit | d996f4c306e6ca366b288f8ba329f77b54768d51 (patch) | |
tree | 7da9a97832177d5056c3842d986cceefbb7bd903 /gkeys | |
parent | gkeys/actions.py: verify url was not smart about being passed a sig url and w... (diff) | |
download | gentoo-keys-d996f4c306e6ca366b288f8ba329f77b54768d51.tar.gz gentoo-keys-d996f4c306e6ca366b288f8ba329f77b54768d51.tar.bz2 gentoo-keys-d996f4c306e6ca366b288f8ba329f77b54768d51.zip |
gkeys/actions.py: Add filename extension check exclusion
Diffstat (limited to 'gkeys')
-rw-r--r-- | gkeys/gkeys/actions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py index 7275739..6610480 100644 --- a/gkeys/gkeys/actions.py +++ b/gkeys/gkeys/actions.py @@ -778,7 +778,8 @@ class Actions(object): self.logger.debug( _unicode("ACTIONS: verify; local file %s") % filepath) success = os.path.isfile(filepath) - if not signature: + if (not signature + and '.' + filepath.rsplit('.', 1)[1] not in EXTENSIONS): success_fetch = False for ext in EXTENSIONS: sig_path = filepath + ext |