From de95d788c2591023d2ae59cc0eb495d4aed3b05c Mon Sep 17 00:00:00 2001 From: Daniel Robbins Date: Sun, 16 Nov 2003 05:39:45 +0000 Subject: [PATCH] allow disabled pkgcache to actually work git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@85 d1e1f19c-881f-0410-ab34-b69fee027534 --- modules/targets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/targets.py b/modules/targets.py index 780ac06a..7c134691 100644 --- a/modules/targets.py +++ b/modules/targets.py @@ -115,8 +115,9 @@ class generic_stage_target(generic_target): self.mount_safety_check() cmd("rm -rf "+self.settings["chroot_path"],"Could not remove existing directory: "+self.settings["chroot_path"]) os.makedirs(self.settings["chroot_path"]) - if not os.path.exists(self.settings["pkgcache_path"]): - os.makedirs(self.settings["pkgcache_path"]) + if self.settings.has_key["PKGCACHE"]: + if not os.path.exists(self.settings["pkgcache_path"]): + os.makedirs(self.settings["pkgcache_path"]) def unpack_and_bind(self): print "Unpacking stage tarball..." -- 2.26.2