summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-18 11:29:18 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-18 11:29:40 -0500
commit0029a502ef767e5662e2791b3ca943c3137e6452 (patch)
tree514c5f4a46bae059eafb5af4532bb1000167ea65 /src/sbin
parentea2818be96f67d04f2bf015584d2547e1c4053a0 (diff)
downloadbcfg2-0029a502ef767e5662e2791b3ca943c3137e6452.tar.gz
bcfg2-0029a502ef767e5662e2791b3ca943c3137e6452.tar.bz2
bcfg2-0029a502ef767e5662e2791b3ca943c3137e6452.zip
fixed edge case where the same package exists in two repos available to the same client
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-yum-helper3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-yum-helper b/src/sbin/bcfg2-yum-helper
index f2c94234d..f0c378a96 100755
--- a/src/sbin/bcfg2-yum-helper
+++ b/src/sbin/bcfg2-yum-helper
@@ -179,7 +179,8 @@ class DepSolver(object):
# provider of perl(lib).
rv = []
for pkg in providers:
- if self.get_package_object(pkg.name) == pkg:
+ found = self.get_package_object(pkg.name)
+ if found == pkg or found.pkgtup == pkg.pkgtup:
rv.append(pkg)
else:
rv = providers