diff options
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(): |