X-Git-Url: https://git.tld-linux.org/?p=packages%2Fansible.git;a=blobdiff_plain;f=poldek.patch;h=9777eb330eab9ee9783045ed7fe63eab56fb728d;hp=37d2a10e55ac96f8c7e796e43997a0466c571d2d;hb=ed896d32cd409e40f0ce9ed0472052e8565e7450;hpb=5f3a4ebf1d408299200ad55e6245b91b23ad7f19 diff --git a/poldek.patch b/poldek.patch index 37d2a10..9777eb3 100644 --- a/poldek.patch +++ b/poldek.patch @@ -1,13 +1,13 @@ -diff -ur ansible-2.8.0.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py ansible-2.8.0/lib/ansible/module_utils/facts/system/pkg_mgr.py ---- ansible-2.8.0.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py 2019-06-21 22:50:15.462000000 +0200 -+++ ansible-2.8.0/lib/ansible/module_utils/facts/system/pkg_mgr.py 2019-06-21 22:51:42.117000000 +0200 -@@ -13,7 +13,8 @@ +-diff -ur ansible-2.16.2.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py ansible-2.16.2/lib/ansible/module_utils/facts/system/pkg_mgr.py +--- ansible-2.16.2.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py 2023-12-11 21:48:58.000000000 +0100 ++++ ansible-2.16.2/lib/ansible/module_utils/facts/system/pkg_mgr.py 2024-01-07 20:19:31.342969058 +0100 +@@ -15,7 +15,8 @@ # A list of dicts. If there is a platform with more than one # package manager, put the preferred one last. If there is an # ansible module, use that as the value for the 'name' key. --PKG_MGRS = [{'path': '/usr/bin/yum', 'name': 'yum'}, +-PKG_MGRS = [{'path': '/usr/bin/rpm-ostree', 'name': 'atomic_container'}, +PKG_MGRS = [{'path': '/usr/bin/poldek', 'name': 'poldek'}, -+ {'path': '/usr/bin/yum', 'name': 'yum'}, - {'path': '/usr/bin/dnf', 'name': 'dnf'}, - {'path': '/usr/bin/apt-get', 'name': 'apt'}, - {'path': '/usr/bin/zypper', 'name': 'zypper'}, ++ {'path': '/usr/bin/rpm-ostree', 'name': 'atomic_container'}, + {'path': '/usr/bin/yum', 'name': 'yum'}, + + # NOTE the `path` key for dnf/dnf5 is effectively discarded when matched for Red Hat OS family,