From 133d25bc9f57d6cca49b2932c4dac3dfb46b7c5c Mon Sep 17 00:00:00 2001 From: Carl George Date: May 20 2020 19:56:41 +0000 Subject: Disable dnf plugin on CentOS --- diff --git a/SPECS/subscription-manager.spec b/SPECS/subscription-manager.spec index ea3e987..a291875 100644 --- a/SPECS/subscription-manager.spec +++ b/SPECS/subscription-manager.spec @@ -847,6 +847,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