Correct mistake with cache dir ensurance.
This commit is contained in:
parent
c91524b39b
commit
6299545b10
|
@ -73,11 +73,9 @@ 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'))]:
|
|
||||||
pypungi._ensuredir(target,
|
|
||||||
self.logger,
|
self.logger,
|
||||||
force=True)
|
force=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue