From: Daniel Robbins Date: Sun, 16 Nov 2003 05:39:45 +0000 (+0000) Subject: allow disabled pkgcache to actually work X-Git-Tag: CATALYST_1_0_1~155 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de95d788c2591023d2ae59cc0eb495d4aed3b05c;p=catalyst.git allow disabled pkgcache to actually work git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@85 d1e1f19c-881f-0410-ab34-b69fee027534 --- 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..."