From eef932a9ea23d66e18e0cbaf63eb69a5b341f257 Mon Sep 17 00:00:00 2001 From: Carl George Date: Aug 10 2021 00:21:22 +0000 Subject: Set dnf plugin to disabled by default on CentOS --- diff --git a/SPECS/subscription-manager.spec b/SPECS/subscription-manager.spec index e90d6e4..cab1475 100644 --- a/SPECS/subscription-manager.spec +++ b/SPECS/subscription-manager.spec @@ -886,6 +886,10 @@ find %{buildroot} -name \*.py* -exec touch -r %{SOURCE0} '{}' \; %endif %endif +%if %{defined centos} +sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscription-manager.conf +%endif + # base/cli tools use the gettext domain 'rhsm', while the # gnome-help tools use domain 'subscription-manager' %files -f rhsm.lang