summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuanhuan Li <huanhuanx.li@intel.com>2014-05-21 10:43:18 +0800
committerHuanhuan Li <huanhuanx.li@intel.com>2014-05-21 10:44:28 +0800
commitcfe9adef6ddfcfa0eb7fb72135cd7e85bfd375f7 (patch)
treeaff16e961e1feae57130b3d9ac7f8a39a419d7ce
parent19e312b50bccb8578998ab80d984ff2e5a38fe08 (diff)
downloadmic-cfe9adef6ddfcfa0eb7fb72135cd7e85bfd375f7.tar.gz
mic-cfe9adef6ddfcfa0eb7fb72135cd7e85bfd375f7.tar.bz2
mic-cfe9adef6ddfcfa0eb7fb72135cd7e85bfd375f7.zip
Make the error more precise
Change-Id: I11879de8063534eb5a59b80edbfcd9a73aefdc5d
-rw-r--r--plugins/backend/zypppkgmgr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py
index e0b0a1b..74d364e 100644
--- a/plugins/backend/zypppkgmgr.py
+++ b/plugins/backend/zypppkgmgr.py
@@ -567,9 +567,11 @@ class Zypp(BackendPlugin):
if download_count > 0:
msger.info("Downloading packages ...")
self.downloadPkgs(dlpkgs, download_count)
+ except CreateError, e:
+ raise CreateError("Package download failed: %s" %(e,))
+ try:
self.installPkgs(dlpkgs)
-
except (RepoError, RpmError):
raise
except Exception, e: