Make the error more precise
authorHuanhuan Li <huanhuanx.li@intel.com>
Wed, 21 May 2014 02:43:18 +0000 (10:43 +0800)
committeradmin <yuhuan.yang@samsung.com>
Thu, 4 Feb 2016 10:12:29 +0000 (18:12 +0800)
Change-Id: I11879de8063534eb5a59b80edbfcd9a73aefdc5d

plugins/backend/zypppkgmgr.py

index e0b0a1b..74d364e 100644 (file)
@@ -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: