summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-04-17 10:56:03 -0700
committerGitHub <noreply@github.com>2018-04-17 10:56:03 -0700
commitced3268506fa675dfcbaebddc040303210024921 (patch)
tree99c103fa8e9c38afa60b2164f190a0d2b7eaa436
parenta3a9e92568e663c8fbbbb47010929ea3eef49cab (diff)
parenta771b8be0bfc85a4bd3946f8f458a769e00fea7b (diff)
downloadchef-ced3268506fa675dfcbaebddc040303210024921.tar.gz
Merge pull request #7147 from chef/lcg/yum-rhs-fix
fix for Red Hat Satellite yum_package bug
-rw-r--r--lib/chef/provider/package/yum/yum_helper.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/provider/package/yum/yum_helper.py b/lib/chef/provider/package/yum/yum_helper.py
index 3bb70e75fb..d2c04c72db 100644
--- a/lib/chef/provider/package/yum/yum_helper.py
+++ b/lib/chef/provider/package/yum/yum_helper.py
@@ -27,6 +27,11 @@ except ImportError:
(prco_e, prco_v, prco_r) = stringToVersion(v)
return (n, f, (prco_e, prco_v, prco_r))
+# hack to work around https://github.com/chef/chef/issues/7126
+# see https://bugzilla.redhat.com/show_bug.cgi?id=1396248
+if not hasattr(yum.packages.FakeRepository, 'compare_providers_priority'):
+ yum.packages.FakeRepository.compare_providers_priority = 99
+
base = None
def get_base():