summaryrefslogtreecommitdiff
path: root/plugins/backend
diff options
context:
space:
mode:
authorHuang Hao <hao.h.huang@intel.com>2013-12-31 12:19:53 +0800
committerHuang Hao <hao.h.huang@intel.com>2014-01-02 12:55:39 +0800
commit5cfa0640166b7123619ad641a0771e8a6e127f56 (patch)
tree1a8acef5144f2d90099b835c27b5e8c7cda0ccae /plugins/backend
parentdbbd319f84142555e52ce881ba6640fa119d55a8 (diff)
downloadmic-5cfa0640166b7123619ad641a0771e8a6e127f56.tar.gz
mic-5cfa0640166b7123619ad641a0771e8a6e127f56.tar.bz2
mic-5cfa0640166b7123619ad641a0771e8a6e127f56.zip
Rewrite SafeURL class without using zypp.Url
Since SafeURL implementation depends on lib zypp which provided by python-zypp package. This package will not be installed when only install "mic" package instead of "mic-native". Then import zypp will raise exception of "No module named _zypp". Change-Id: If8232b0ee77166eadc04f016cd2cda722c7ff23e Fixed: 1568
Diffstat (limited to 'plugins/backend')
-rw-r--r--plugins/backend/zypppkgmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py
index a83fa92..604e3e9 100644
--- a/plugins/backend/zypppkgmgr.py
+++ b/plugins/backend/zypppkgmgr.py
@@ -370,7 +370,7 @@ class Zypp(BackendPlugin):
repo_info.setEnabled(repo.enabled)
repo_info.setAutorefresh(repo.autorefresh)
repo_info.setKeepPackages(repo.keeppackages)
- baseurl = repo.baseurl[0].url
+ baseurl = zypp.Url(repo.baseurl[0].full)
if not ssl_verify:
baseurl.setQueryParam("ssl_verify", "no")
if proxy: