[Yum-devel] RHEL6.1 yum version is creating extra empty cache directories

James Antill james at fedoraproject.org
Wed Apr 6 18:58:55 UTC 2011


On Wed, 2011-04-06 at 15:47 -0300, rotru at br.ibm.com wrote:
> Hi James, thanks for the fast answers, but I do not have access to the
> bug. Even logged in.
> Did I missed some step or do I have to request permission to someone ?

 Ahh, I assume it's marked internal only. The main point is that to fix
it you can do:

 repos_persistdir = os.path.normpath('%s/repos/%s/%s/'
         % (self.conf.persistdir,  self.yumvar.get('basearch', '$basearch'),
            self.yumvar.get('releasever', '$releasever')))   

 repo.base_persistdir = repos_persistdir

...where "self" there is a YumBase() object.

 See also the patch I just posted to this list for review, which will
hide the problem (won't create dirs. in cwd anymore).
 It might still be possible to get that patch into 6.1, if you contact
your representative.



More information about the Yum-devel mailing list