From 19993ef780d7a0d93bb6e7d56407b03b92a58e11 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Tue, 16 Nov 2010 18:40:34 +0100 Subject: [PATCH] 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. --- src/pypungi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index e3de0fa8..daecdb0f 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -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