commit: 9da08e01a9a2fc5ae693b19f64bcd7f0aab6bde4
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 11 00:13:06 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Apr 18 16:50:36 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=9da08e01
generic_stage_target.py: Fix an intermittent snapshot_cache_path keyerror
---
catalyst/base/stagebase.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 90dd37d..744ce08 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -458,10 +458,10 @@ class StageBase(TargetBase, ClearBase, GenBase):
verbose=False)
def set_snapcache_path(self):
+ self.settings["snapshot_cache_path"] = \
+ normpath(pjoin(self.settings["snapshot_cache"],
+ self.settings["snapshot"]))
if "snapcache" in self.settings["options"]:
- self.settings["snapshot_cache_path"]=\
- normpath(pjoin(self.settings["snapshot_cache"],
- self.settings["snapshot"]))
self.snapcache_lock=\
LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to
"+self.settings["snapshot_cache_path"]