Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 2/5] generic_stage_target.py: Fix an intermittent snapshot_cache_path keyerror
Date: Sun, 02 Mar 2014 23:01:19
Message-Id: 1393801262-13820-2-git-send-email-dolsen@gentoo.org
1 ---
2 catalyst/targets/generic_stage_target.py | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5 diff --git a/catalyst/targets/generic_stage_target.py b/catalyst/targets/generic_stage_target.py
6 index 095327a..7fd583e 100644
7 --- a/catalyst/targets/generic_stage_target.py
8 +++ b/catalyst/targets/generic_stage_target.py
9 @@ -470,10 +470,10 @@ class generic_stage_target(generic_target):
10 hash_function=self.settings["hash_function"],verbose=False)
11
12 def set_snapcache_path(self):
13 + self.settings["snapshot_cache_path"] = \
14 + normpath(self.settings["snapshot_cache"] + "/" +
15 + self.settings["snapshot"])
16 if "SNAPCACHE" in self.settings:
17 - self.settings["snapshot_cache_path"] = \
18 - normpath(self.settings["snapshot_cache"] + "/" +
19 - self.settings["snapshot"])
20 self.snapcache_lock=\
21 LockDir(self.settings["snapshot_cache_path"])
22 print "Caching snapshot to "+self.settings["snapshot_cache_path"]
23 --
24 1.8.5.3

Replies