[Yum-devel] protect-packages plugin - compatibility with yum 2.4

Tim Lauridsen tla at rasmil.dk
Sat Jul 7 10:36:21 UTC 2007


Greg Swallow wrote:
> I got the protect-packages plugin to work with yum 2.4 in EL4 by renaming
> the two instances of TYPE_INTERACTIVE to TYPE_INTERFACE and changing
> requires_api_version = '2.4' to requires_api_version = '2.1'.  It seems to
> work fine like that.  Just wondering if there is a way to change it to work
> with _both_ versions of yum, as it doesn't seem to really require yum 3.0?
> Thanks,
>
> Greg
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at linux.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
>   
This should do the tricks.

*from* yum.plugins *import* TYPE_INTERACTIVE, TYPE_CORE, API_VERSION, TYPE_INTERFACE
**

plugin_type = (API_VERSION <= 2.3 *and* TYPE_INTERFACE *or* 
TYPE_INTERACTIVE,

               TYPE_CORE)

Tim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.baseurl.org/pipermail/yum-devel/attachments/20070707/1c7bedd8/attachment.htm 


More information about the Yum-devel mailing list