Correct mistake with cache dir ensurance.

This commit is contained in:
Jesse Keating 2007-12-11 10:34:18 -05:00 committed by Jesse Keating
parent c91524b39b
commit 6299545b10

View File

@ -73,13 +73,11 @@ class Pungi(pypungi.PungiBase):
compsfile = os.path.join(self.workdir, '%s-%s-comps.xml' % (self.config.get('default', 'name'), self.config.get('default', 'version'))) compsfile = os.path.join(self.workdir, '%s-%s-comps.xml' % (self.config.get('default', 'name'), self.config.get('default', 'version')))
# setup the cache dirs # setup the cache dirs
for target in [os.path.join(self.config.get('default', 'cachedir', for target in ['createrepocache', 'repoviewcache']:
'createrepocache')), pypungi._ensuredir(os.path.join(self.config.get('default', 'cachedir'),
os.path.join(self.config.get('default', 'cachedir', target),
'repoviewcache'))]: self.logger,
pypungi._ensuredir(target, force=True)
self.logger,
force=True)
# setup the createrepo call # setup the createrepo call
createrepo = ['/usr/bin/createrepo'] createrepo = ['/usr/bin/createrepo']