projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6571f0c
)
cleaner error message from zypp backend
author
JF Ding
<jian-feng.ding@intel.com>
Sat, 10 Mar 2012 01:14:40 +0000
(09:14 +0800)
committer
JF Ding
<jian-feng.ding@intel.com>
Sat, 10 Mar 2012 01:14:40 +0000
(09:14 +0800)
plugins/backend/zypppkgmgr.py
patch
|
blob
|
history
diff --git
a/plugins/backend/zypppkgmgr.py
b/plugins/backend/zypppkgmgr.py
index 13f77598a26e9ab19ac525b15f899fc6bf5981af..c36b31367e553407f566edcdd732889cabd0d8ea 100755
(executable)
--- a/
plugins/backend/zypppkgmgr.py
+++ b/
plugins/backend/zypppkgmgr.py
@@
-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