[Yum-devel] [PATCH] Fix for accidently calling doPluginSetup() with non-list arguments

James Antill jantill at redhat.com
Thu Aug 9 15:15:27 UTC 2007


 This patch should fix the case of people calling doPluginSetup() etc.
with a non-list argument ... the big problem being calling like:

  self.doPluginSetup(types=(yum.plugins.TYPE_CORE))

...which actually silently does all types, due to the missing comma,
see:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=199863


...I've done the patch against yum because this'll prevent future
problems, and I have a git repo. on hand for yum ;).


 I've attached it and it can be merged from:

git pull http://people.redhat.com/jantill/gits/yum plugin-types-check


-- 
James Antill <jantill at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin-types-check.patch
Type: text/x-patch
Size: 605 bytes
Desc: Fix for calling YumPlugin() with non-sequence types arg.
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070809/405979f8/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070809/405979f8/attachment.pgp 


More information about the Yum-devel mailing list