From: Brian Dolbec Date: Sat, 11 Jan 2014 00:13:06 +0000 (-0800) Subject: generic_stage_target.py: Fix an intermittent snapshot_cache_path keyerror X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2cf676cffe44e4048113a48a4362b57867d11b6;p=catalyst.git generic_stage_target.py: Fix an intermittent snapshot_cache_path keyerror --- diff --git a/catalyst/targets/generic_stage_target.py b/catalyst/targets/generic_stage_target.py index 9c39d008..eaf2c1f7 100644 --- a/catalyst/targets/generic_stage_target.py +++ b/catalyst/targets/generic_stage_target.py @@ -215,13 +215,14 @@ class generic_stage_target(generic_target): self.mountmap = SOURCE_MOUNTS_DEFAULTS.copy() # update them from settings self.mountmap["distdir"] = self.settings["distdir"] - self.mountmap["portdir"] = normpath("/".join([ - self.settings["snapshot_cache_path"], - self.settings["repo_name"], - ])) if "SNAPCACHE" not in self.settings: self.mounts.remove("portdir") - #self.mountmap["portdir"] = None + self.mountmap["portdir"] = None + else: + self.mountmap["portdir"] = normpath("/".join([ + self.settings["snapshot_cache_path"], + self.settings["repo_name"], + ])) if os.uname()[0] == "Linux": self.mounts.append("devpts") self.mounts.append("shm")