diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-04-11 22:47:09 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-04-11 22:47:09 -0700 |
commit | a771b8be0bfc85a4bd3946f8f458a769e00fea7b (patch) | |
tree | f6b2dbbf4cbbbb9b159ddb5a3edf85bb533547ba /lib/chef/provider/package | |
parent | 415c82c77489b25000ef22040168eee33950ebaf (diff) | |
download | chef-a771b8be0bfc85a4bd3946f8f458a769e00fea7b.tar.gz |
fix for Red Hat Satellite yum_package buglcg/yum-rhs-fix
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/package')
-rw-r--r-- | lib/chef/provider/package/yum/yum_helper.py | 5 |
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 72e1177e8e..082ed78df6 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(): |