From b6ed14a9dddd8760aecf791de866d3f80e350f2f Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Tue, 12 Jun 2012 18:07:46 +0800 Subject: [PATCH] fix src pkgs download failed issue Traceback: "TypeError: invalid arguments to setopt" Signed-off-by: Gui Chen --- mic/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mic/utils/misc.py b/mic/utils/misc.py index f4b461c..1b5f086 100644 --- a/mic/utils/misc.py +++ b/mic/utils/misc.py @@ -574,7 +574,7 @@ def get_package(pkg, repometadata, arch = None): makedirs("%s/%s/packages" % (target_repo["cachedir"], target_repo["name"])) url = os.path.join(target_repo["baseurl"], pkgpath) filename = str("%s/%s/packages/%s" % (target_repo["cachedir"], target_repo["name"], os.path.basename(pkgpath))) - pkg = myurlgrab(url, filename, target_repo["proxies"]) + pkg = myurlgrab(str(url), filename, target_repo["proxies"]) return pkg else: return None -- 2.7.4