[Yum-devel] [PATCH 2/6] getPackage, _getFile: kwargs pass-through
Zdeněk Pavlas
zpavlas at redhat.com
Fri Jan 27 12:30:04 UTC 2012
---
yum/yumRepo.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 9cd20b4..bd43d66 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -758,7 +758,7 @@ class YumRepository(Repository, config.RepoConf):
def _getFile(self, url=None, relative=None, local=None, start=None, end=None,
copy_local=None, checkfunc=None, text=None, reget='simple',
- cache=True, size=None):
+ cache=True, size=None, **kwargs):
"""retrieve file from the mirrorgroup for the repo
relative to local, optionally get range from
start to end, also optionally retrieve from a specific baseurl"""
@@ -852,7 +852,8 @@ Insufficient space in download directory %s
reget = reget,
checkfunc=checkfunc,
http_headers=headers,
- size=size
+ size=size,
+ **kwargs
)
except URLGrabError, e:
errstr = "failure: %s from %s: %s" % (relative, self.id, e)
@@ -864,7 +865,7 @@ Insufficient space in download directory %s
return result
__get = _getFile
- def getPackage(self, package, checkfunc=None, text=None, cache=True):
+ def getPackage(self, package, checkfunc=None, text=None, cache=True, **kwargs):
remote = package.relativepath
local = package.localPkg()
basepath = package.basepath
@@ -881,6 +882,7 @@ Insufficient space in download directory %s
text=text,
cache=cache,
size=package.size,
+ **kwargs
)
def getHeader(self, package, checkfunc = None, reget = 'simple',
--
1.7.4.4
More information about the Yum-devel
mailing list