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
[email protected]
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
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel