[lorax 2/2] Verify the yum transaction | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Check if all packages that were supposed to be installed,
ended up installed.
---
src/pylorax/ltmpl.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/pylorax/ltmpl.py b/src/pylorax/ltmpl.py
index 2560f27..994b601 100644
--- a/src/pylorax/ltmpl.py
+++ b/src/pylorax/ltmpl.py
@@ -428,6 +428,13 @@ class LoraxTemplateRunner(object):
self.yum.repos.setProgressBar(LoraxDownloadCallback())
self.yum.processTransaction(callback=LoraxTransactionCallback(),
rpmDisplay=LoraxRpmCallback())
+
+ # verify if all packages that were supposed to be installed,
+ # are really installed
+ errs = [t.po for t in self.yum.tsInfo if not self.yum.rpmdb.contains(po=t.po)]
+ for po in errs:
+ logger.error("package '%s' was not installed", po)
+
self.yum.closeRpmDB()
def removefrom(self, pkg, *globs):
--
1.7.9.5
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
[Home] [Fedora Users] [Fedora Legacy List] [Fedora Maintainers] [Fedora Desktop] [Red Hat 9 Bible] [Fedora Bible] [Fedora SELinux] [Big List of Linux Books] [Yosemite News] [Yosemite Photos] [KDE Users] [Fedora Tools]