logo       

Re: yum update behavior plugin: msg#00044

linux.centos.devel

Subject: Re: yum update behavior plugin

Karanbir Singh napsal(a):
> can we just backport the function ?
Yes, we can. I have thought CentoOS is not changing packages coming from
upstream. So, we need to patch
/usr/lib/python2.3/site-packages/yum/transactioninfo.py, see
http://devel.linux.duke.edu/cgi-bin/viewcvs.cgi/yum/yum/transactioninfo.py?revision=1.33&view=markup.
Look at remove method. I'm sending patched file.
>
> also, have you looked at the code that JJ Garcia sent in ?
>
Yes, I have. We should go different way. We will use exclude_hook
finally, but not now.

To sum it up. The code I'm sending, is really pre-alfa. Because I have
tested it on machines where yum is updated, code work with iftop, which
has been updated by Dag a few days before. You can change in
yumfirst.py: yumname = 'iftop'

Plugin works pretty fine:
yum update
yum install expect iftop
Both command are run and only iftop is installed/updated.

The plugin should be extended to work event in those cases:
yum install expect
yum update expect
And here comes exclude_hook.

So, give it a try and if it's ok, I'm gonna extend the functionality.
David

Attachment: yumfirst.py
Description: application/python

[main]
enabled=1

Attachment: transactioninfo.py
Description: application/python

_______________________________________________
CentOS-devel mailing list
CentOS-devel-IFYaIzF+flcdnm+yROfE0A@xxxxxxxxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-devel
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise