From 6299545b10f2ee08e9cc1b71a2a1916bd517ac00 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 11 Dec 2007 10:34:18 -0500 Subject: [PATCH] Correct mistake with cache dir ensurance. --- pypungi/pungi.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pypungi/pungi.py b/pypungi/pungi.py index 19112fac..9f747f41 100755 --- a/pypungi/pungi.py +++ b/pypungi/pungi.py @@ -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'))) # setup the cache dirs - for target in [os.path.join(self.config.get('default', 'cachedir', - 'createrepocache')), - os.path.join(self.config.get('default', 'cachedir', - 'repoviewcache'))]: - pypungi._ensuredir(target, - self.logger, - force=True) + for target in ['createrepocache', 'repoviewcache']: + pypungi._ensuredir(os.path.join(self.config.get('default', 'cachedir'), + target), + self.logger, + force=True) # setup the createrepo call createrepo = ['/usr/bin/createrepo']