Skip to content

Commit

Permalink
actions.py: Update ssl-fetch Connector call, add climit
Browse files Browse the repository at this point in the history
Update for an ssl-fetch API change
  • Loading branch information
dol-sen committed Jan 20, 2016
1 parent 474c437 commit 8843c85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gkeys/gkeys/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@ def _verify(self, args, key, messages=None):
"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
Expand All @@ -719,7 +722,7 @@ def _verify(self, args, key, messages=None):
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:
Expand Down

0 comments on commit 8843c85

Please sign in to comment.