From 145ef4e372d7a8944759783985babd30d3d03df2 Mon Sep 17 00:00:00 2001
From: Brian Dolbec <dolsen@gentoo.org>
Date: Tue, 22 Jan 2013 00:39:18 -0800
Subject: [PATCH] rename a make.conf key to make_conf due to bash variable name
 restrictions

---
 catalyst/base/stagebase.py | 10 +++++-----
 catalyst/defaults.py       |  5 ++++-
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 4b24d9a7..405f47ab 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1009,7 +1009,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
 
 	def chroot_setup(self):
 		self.makeconf=read_makeconf(normpath(self.settings["chroot_path"]+
-			self.settings["make.conf"]))
+			self.settings["make_conf"]))
 		self.override_cbuild()
 		self.override_chost()
 		self.override_cflags()
@@ -1056,7 +1056,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
 
 			""" Modify and write out make.conf (for the chroot) """
 			makepath = normpath(self.settings["chroot_path"] +
-				self.settings["make.conf"])
+				self.settings["make_conf"])
 			cmd("rm -f " + makepath,\
 				"Could not remove " + makepath, env=self.env)
 			myf=open(makepath, "w")
@@ -1106,9 +1106,9 @@ class StageBase(TargetBase, ClearBase, GenBase):
 
 			myf.close()
 			makepath = normpath(self.settings["chroot_path"] +
-				self.settings["make.conf"])
+				self.settings["make_conf"])
 			cmd("cp " + makepath + " " + makepath + ".catalyst",\
-				"Could not backup " + self.settings["make.conf"],env=self.env)
+				"Could not backup " + self.settings["make_conf"],env=self.env)
 			touch(self.settings["autoresume_path"]+"chroot_setup")
 
 	def fsscript(self):
@@ -1154,7 +1154,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
 			cmd("rm -rf " + overlay,
 				"Could not remove " + self.settings["local_overlay"], env=self.env)
 			cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
-				self.settings["make.conf"],\
+				self.settings["make_conf"],\
 				"Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
 
 		""" Clean up old and obsoleted files in /etc """
diff --git a/catalyst/defaults.py b/catalyst/defaults.py
index c52ab737..f386b436 100644
--- a/catalyst/defaults.py
+++ b/catalyst/defaults.py
@@ -57,6 +57,8 @@ contents_definitions = {
 }
 
 
+# please try to avoid using "-", "/", "." in key names
+# due to them not being compatible in the bash environment
 confdefaults={
 	"storedir": "/var/tmp/catalyst",
 	"sharedir": "/usr/lib/catalyst",
@@ -67,13 +69,14 @@ confdefaults={
 	"packagedir": "/usr/portage/packages",
 	"port_tmpdir": "/var/tmp/portage",
 	"local_overlay": "/usr/local/portage",
-	"make.conf": "/etc/portage/make.conf",
+	"make_conf": "/etc/portage/make.conf",
 	"options": set(),
 	"snapshot_name": "portage-",
 	"snapshot_cache": "/var/tmp/catalyst/snapshot_cache",
 	"hash_function": "crc32",
 	}
 
+
 target_mounts = {
 	"proc": "/proc",
 	"dev": "/dev",
-- 
2.26.2