From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4BEF813873B for ; Sun, 2 Mar 2014 23:01:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DCA2E09FE; Sun, 2 Mar 2014 23:01:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E87D6E09FE for ; Sun, 2 Mar 2014 23:01:14 +0000 (UTC) Received: from big_daddy.dol-sen.ca (S010600222de111ff.vc.shawcable.net [96.49.5.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: dolsen) by smtp.gentoo.org (Postfix) with ESMTPSA id 06BFE33F957 for ; Sun, 2 Mar 2014 23:01:13 +0000 (UTC) From: Brian Dolbec To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 2/5] generic_stage_target.py: Fix an intermittent snapshot_cache_path keyerror Date: Sun, 2 Mar 2014 15:00:59 -0800 Message-Id: <1393801262-13820-2-git-send-email-dolsen@gentoo.org> X-Mailer: git-send-email 1.8.5.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: aad84a02-6e29-4b87-97fb-8e6a14eba8bd X-Archives-Hash: f419e4f5aacba3d6df963a9f8dacc23a --- catalyst/targets/generic_stage_target.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalyst/targets/generic_stage_target.py b/catalyst/targets/generic_stage_target.py index 095327a..7fd583e 100644 --- a/catalyst/targets/generic_stage_target.py +++ b/catalyst/targets/generic_stage_target.py @@ -470,10 +470,10 @@ class generic_stage_target(generic_target): hash_function=self.settings["hash_function"],verbose=False) def set_snapcache_path(self): + self.settings["snapshot_cache_path"] = \ + normpath(self.settings["snapshot_cache"] + "/" + + self.settings["snapshot"]) if "SNAPCACHE" in self.settings: - self.settings["snapshot_cache_path"] = \ - normpath(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"] -- 1.8.5.3