From 8843c85e7b579e80db80b327dbbee159746b87e9 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Wed, 20 Jan 2016 07:58:41 -0800 Subject: 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(-) (limited to 'gkeys') 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: -- cgit v1.2.3-65-gdbad