aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2016-03-09 18:59:13 -0500
committerDevan Franchini <twitch153@gentoo.org>2016-03-09 18:59:18 -0500
commitb15d33d547a8fa99f6919036991e2a7e539fe04c (patch)
tree69f3449263431c739b04cbb53091ea0dfaa887de
parentremotedb.py: Adds climit param to _fetch_file() definition (diff)
downloadlayman-b15d33d547a8fa99f6919036991e2a7e539fe04c.tar.gz
layman-b15d33d547a8fa99f6919036991e2a7e539fe04c.tar.bz2
layman-b15d33d547a8fa99f6919036991e2a7e539fe04c.zip
remotedb.py: Removes climit param for internel _fetch_file() params
As _fetch_file() is for fetching internal files and does not use ssl-fetch it should not have climit as a parameter.
-rw-r--r--layman/remotedb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/layman/remotedb.py b/layman/remotedb.py
index acade02..2df0c63 100644
--- a/layman/remotedb.py
+++ b/layman/remotedb.py
@@ -145,7 +145,7 @@ class RemoteDB(DbBase):
filepath, mpath, tpath, sig = self._paths(url)
if 'file://' in url:
success, olist, timestamp = self._fetch_file(
- url, mpath, tpath, climit=60)
+ url, mpath, tpath)
elif sig:
success, olist, timestamp = fetcher.fetch_content(
url[0], tpath, climit=60)
@@ -222,7 +222,7 @@ class RemoteDB(DbBase):
return base + '_' + hashlib.md5(url_encoded).hexdigest()
- def _fetch_file(self, url, mpath, tpath=None, climit=60):
+ def _fetch_file(self, url, mpath, tpath=None):
self.output.debug('RemoteDB._fetch_file() url = %s' % url, 2)
# check when the cache was last updated
# and don't re-fetch it unless it has changed