cleaner error message from zypp backend
authorJF Ding <jian-feng.ding@intel.com>
Sat, 10 Mar 2012 01:14:40 +0000 (09:14 +0800)
committerJF Ding <jian-feng.ding@intel.com>
Sat, 10 Mar 2012 01:14:40 +0000 (09:14 +0800)
plugins/backend/zypppkgmgr.py

index 13f7759..c36b313 100755 (executable)
@@ -453,10 +453,10 @@ class Zypp(BackendPlugin):
 
             self.installPkgs(dlpkgs)
 
-        except RepoError, e:
-            raise CreatorError("Unable to download from repo : %s" % (e,))
-        except RpmError, e:
-            raise CreatorError("Unable to install: %s" % (e,))
+        except (RepoError, RpmError):
+            raise
+        except Exception, e:
+            raise CreatorError("Package installation failed: %s" % (e,))
 
     def getAllContent(self):
         return self.__pkgs_content