Let the yumconf.persistdir be as the default

This path gets appended to the installroot every time,
even if it's an absolute path, so it ends up being inside
the installroot everytime. We don't want it to be in some
path depending on a temporary workdir. This will put all
the yum files in a standard /var/lib/yum directory inside
the installroot.
This commit is contained in:
Martin Gracik 2010-11-16 18:40:34 +01:00 committed by Jesse Keating
parent 31d6c3d6ef
commit 19993ef780
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class Pungi(pypungi.PungiBase):
yumconf.debuglevel = 6
yumconf.errorlevel = 6
yumconf.cachedir = self.config.get('pungi', 'cachedir')
yumconf.persistdir = os.path.join(self.workdir, 'yumlib')
yumconf.persistdir = "/var/lib/yum" # keep at default, gets appended to installroot
yumconf.installroot = os.path.join(self.workdir, 'yumroot')
yumconf.uid = os.geteuid()
yumconf.cache = 0