diff options
author | Jack Neely <jjneely@ncsu.edu> | 2010-08-16 20:44:23 +0000 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-08-18 18:39:45 -0500 |
commit | 6bce1194667b273566af5c119eb560dc0b715545 (patch) | |
tree | 2a84f8c172b04f71fbe58be0b5a554aaf54a8c3b /src/lib | |
parent | 5eee3f05bc235c77546df986b6457f4f64be0ee6 (diff) | |
download | bcfg2-6bce1194667b273566af5c119eb560dc0b715545.tar.gz bcfg2-6bce1194667b273566af5c119eb560dc0b715545.tar.bz2 bcfg2-6bce1194667b273566af5c119eb560dc0b715545.zip |
YUMng display classes, always compare string versions of packages.
The package object here can be either a yum PO or a string. Comparing
strings to POs tracebacks.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6025 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Client/Tools/YUMng.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index aba52315a..00020bd9b 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -87,11 +87,11 @@ class RPMDisplay(yum.rpmtrans.RPMBaseCallback): @param ts_total: total number of processes in the transaction. """ - if self.package != package or action != self.state: + if self.package != str(package) or action != self.state: msg = "%s: %s" % (self.action[action], package) self.logger.info(msg) self.state = action - self.package = package + self.package = str(package) def scriptout(self, package, msgs): """Handle output from package scripts.""" |