commit:     8843c85e7b579e80db80b327dbbee159746b87e9
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 20 15:58:41 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Wed Jan 20 15:58:41 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=8843c85e

actions.py: Update ssl-fetch Connector call, add climit

Update for an ssl-fetch API change

 gkeys/gkeys/actions.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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:

Reply via email to