FYI -------- Original Message -------- Subject: Re: About BZ707241 Date: Tue, 13 Sep 2011 17:47:48 +0800 From: Leon <leon.w.w...@oracle.com> To: Miroslav Suchý <msu...@redhat.com>
On 09/13/2011 04:52 PM, Miroslav Suchý wrote: > On 09/13/2011 05:16 AM, Leon wrote: >> Hi Miroslav, >> >> 707241 - create progressbar even during groupinstall and do not delete >> rhnplugin... >> <http://git.fedorahosted.org/git?p=spacewalk.git;a=commit;h=83fc936f50812b72e40c3cd64b866bd462a5d53f> >> But now even we do the "yum clean all", the rhnplugin.repos is not >> deleted. The consequence is after "detele repo and yum clean all", old >> cache is still in rhnplugin.repos. Then "yum repolist" will be misleading. > Please create new BZ that rhnplugin.repos file should be deleted during > yum clean all. > I just simply wrote an easy patch, and tests OK. leon@leon-desktop:~/work/yum-rhn-plugin-0.9.1$ diff -u rhnplugin.py rhnplugin.py.new --- rhnplugin.py 2011-09-09 11:35:32.000000000 +0800 +++ rhnplugin.py.new 2011-09-13 16:35:41.053454947 +0800 @@ -218,6 +218,11 @@ _("Package profile information could not be sent.") + "\n" + str(e)) +def clean_hook(conduit): + """ To delete the cache file generated by this plugin """ + cachedir = conduit._base.conf.cachedir + os.system("rm -rf "+cachedir) + def rewordError(e): #This is compensating for hosted/satellite returning back an error #message instructing RHEL5 clients to run "up2date --register" Thank you for replying, have a nice day! - Leon _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel