From 8e79b94826928ffa491299e2e61babb9f835d2d0 Mon Sep 17 00:00:00 2001 From: Andy Thompson Date: Sun, 27 Jul 2014 10:50:28 +0100 Subject: [PATCH] Remove checkEnabledRepo to support el5 --- lib/yum-plugins/replace.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/yum-plugins/replace.py b/lib/yum-plugins/replace.py index 32e21e3..e4056de 100644 --- a/lib/yum-plugins/replace.py +++ b/lib/yum-plugins/replace.py @@ -24,7 +24,7 @@ from yum.plugins import TYPE_CORE, TYPE_INTERACTIVE from yum.Errors import UpdateError, RemoveError from yum.constants import PLUG_OPT_STRING, PLUG_OPT_WHERE_ALL -from yumcommands import checkRootUID, checkGPGKey, checkEnabledRepo +from yumcommands import checkRootUID, checkGPGKey requires_api_version = '2.6' plugin_type = (TYPE_CORE, TYPE_INTERACTIVE) @@ -80,7 +80,6 @@ def getSummary(self): def doCheck(self, base, basecmd, extcmds): checkRootUID(base) checkGPGKey(base) - checkEnabledRepo(base, extcmds) def doCommand(self, base, basecmd, extcmds): logger = logging.getLogger("yum.verbose.main")