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:
1385535
)
zypp: Catch more error msg from rpm transaction results
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Sat, 8 Oct 2011 05:28:42 +0000
(13:28 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Sat, 8 Oct 2011 05:28:42 +0000
(13:28 +0800)
plugins/backend/zypppkgmgr.py
patch
|
blob
|
history
diff --git
a/plugins/backend/zypppkgmgr.py
b/plugins/backend/zypppkgmgr.py
index
d605306
..
3bc00f2
100644
(file)
--- a/
plugins/backend/zypppkgmgr.py
+++ b/
plugins/backend/zypppkgmgr.py
@@
-511,7
+511,16
@@
class Zypp(BackendPlugin):
if not unresolved_dependencies:
self.ts.order()
cb = rpmmisc.RPMInstallCallback(self.ts)
- self.ts.run(cb.callback, '')
+ errors = self.ts.run(cb.callback, '')
+ if errors is None:
+ pass
+ elif len(errors) == 0:
+ msger.warning('scriptlet or other non-fatal errors occurred during transaction.')
+ else:
+ for e in errors:
+ msger.warning(e[0])
+ msger.error('Could not run transaction.')
+
self.ts.closeDB()
self.ts = None
else: