Enable a createrepo cache.

This commit is contained in:
Jesse Keating 2007-12-08 10:42:31 -05:00 committed by Jesse Keating
parent 8ca20d2fa7
commit fb6c4402a2
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,6 @@
* Sat Dec 08 Jesse Keating <jkeating@redhat.com>
- Use a createrepo cache.
* Tue Dec 04 Jesse Keating <jkeating@redhat.com> * Tue Dec 04 Jesse Keating <jkeating@redhat.com>
- Make logged output reusable in shell - Make logged output reusable in shell
- Default to 670 for a CD size, so that we don't overflow - Default to 670 for a CD size, so that we don't overflow

View File

@ -80,6 +80,10 @@ class Pungi(pypungi.PungiBase):
createrepo.append('--groupfile') createrepo.append('--groupfile')
createrepo.append(compsfile) createrepo.append(compsfile)
createrepo.append('--cachedir')
createrepo.append(os.path.join(self.config.get('default', 'cachedir'),
'createrepocache'))
createrepo.append(self.topdir) createrepo.append(self.topdir)
# run the command # run the command
@ -301,6 +305,10 @@ class Pungi(pypungi.PungiBase):
createrepo.append('--groupfile') createrepo.append('--groupfile')
createrepo.append(compsfile) createrepo.append(compsfile)
createrepo.append('--cachedir')
createrepo.append(os.path.join(self.config.get('default', 'cachedir'),
'createrepocache'))
createrepo.append('--baseurl') createrepo.append('--baseurl')
createrepo.append('media://%s' % mediaid) createrepo.append('media://%s' % mediaid)