aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-01-20 07:58:41 -0800
committerBrian Dolbec <dolsen@gentoo.org>2016-01-20 07:58:41 -0800
commit8843c85e7b579e80db80b327dbbee159746b87e9 (patch)
tree002afefc23696b1212898bbf1b5d7405fcbbef5e
parentgkeys-gpg: Make singing and other than verify actions work (diff)
downloadgentoo-keys-8843c85e7b579e80db80b327dbbee159746b87e9.tar.gz
gentoo-keys-8843c85e7b579e80db80b327dbbee159746b87e9.tar.bz2
gentoo-keys-8843c85e7b579e80db80b327dbbee159746b87e9.zip
actions.py: Update ssl-fetch Connector call, add climit
Update for an ssl-fetch API change
-rw-r--r--gkeys/gkeys/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index 01255eb..d3e403d 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -702,6 +702,9 @@ class Actions(ActionBase):
"not supplied, using current directory ./%s") % filepath)
if args.timestamp:
timestamp_path = filepath + ".timestamp"
+ climit = 60
+ else:
+ climit = 0
sig_path = None
if isurl:
from sslfetch.connections import Connector
@@ -719,7 +722,7 @@ class Actions(ActionBase):
self.logger.debug(
_unicode("ACTIONS: verify; timestamp path: %s") % timestamp_path)
success, signedfile, timestamp = fetcher.fetch_file(
- url, filepath, timestamp_path)
+ url, filepath, timestamp_path, climit=climit)
if not success:
messages.append(_unicode("File %s cannot be retrieved.") % filepath)
elif '.' + url.rsplit('.', 1)[1] not in EXTENSIONS: