summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/YUMng.py
diff options
context:
space:
mode:
authorJack Neely <jjneely@ncsu.edu>2011-06-22 13:41:40 -0400
committerJack Neely <jjneely@ncsu.edu>2011-06-22 13:41:40 -0400
commit29e43063c2e8eb58e916da2dfbb375b4c64d3919 (patch)
tree8a02e5fe8893a98fabce29d78e113ca1af994668 /src/lib/Client/Tools/YUMng.py
parentb848b5303c21c2dcb3d3c52e260944676864e332 (diff)
downloadbcfg2-29e43063c2e8eb58e916da2dfbb375b4c64d3919.tar.gz
bcfg2-29e43063c2e8eb58e916da2dfbb375b4c64d3919.tar.bz2
bcfg2-29e43063c2e8eb58e916da2dfbb375b4c64d3919.zip
Packages are uniquely identified by both name and arch
So a package is not "installed" if a package of the same name but different arch is. This will enable YUMng to handle multilib package installs.
Diffstat (limited to 'src/lib/Client/Tools/YUMng.py')
-rw-r--r--src/lib/Client/Tools/YUMng.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index 6aab9817c..f67859ee5 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -451,8 +451,8 @@ class YUMng(Bcfg2.Client.Tools.PkgTool):
verify_flags = inst.get('verify_flags', self.verifyFlags)
verify_flags = verify_flags.lower().replace(' ', ',').split(',')
- if len(POs) == 0:
- # Package not installed
+ if len([ p in POs if p.arch = nevra['arch'] ]) == 0:
+ # Package (name, arch) not installed
self.logger.debug(" %s is not installed" % nevraString(nevra))
stat['installed'] = False
package_fail = True