diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-18 11:29:18 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-18 11:29:40 -0500 |
commit | 0029a502ef767e5662e2791b3ca943c3137e6452 (patch) | |
tree | 514c5f4a46bae059eafb5af4532bb1000167ea65 /src/sbin | |
parent | ea2818be96f67d04f2bf015584d2547e1c4053a0 (diff) | |
download | bcfg2-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-x | src/sbin/bcfg2-yum-helper | 3 |
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 |