[yum-cvs] yum/plugins.py
Seth Vidal
skvidal at linux.duke.edu
Fri Aug 24 19:28:22 UTC 2007
yum/plugins.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit b166a1967131374b43a2252bafc69777f6230954
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Aug 24 15:25:30 2007 -0400
This patch should fix the case of people calling doPluginSetup() etc.
with a non-list argument - From James Antill
diff --git a/yum/plugins.py b/yum/plugins.py
index a216599..3269525 100644
--- a/yum/plugins.py
+++ b/yum/plugins.py
@@ -129,8 +129,10 @@ class YumPlugins:
self.cmdline = (None, None)
self.verbose_logger = logging.getLogger("yum.verbose.YumPlugins")
self.disabledPlugins = disabled
- if not types:
+ if types is None:
types = ALL_TYPES
+ if not isinstance(types, (list, tuple)):
+ types = (types,)
if id(TYPE_INTERFACE) in [id(t) for t in types]:
self.verbose_logger.log(logginglevels.INFO_2,
More information about the Yum-cvs-commits
mailing list