Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/, catalyst/
Date: Thu, 26 Feb 2015 04:12:13
Message-Id: 1420091886.6f01be26fb22e2b9c89453f9a4d2eeba2babf6e6.dolsen@gentoo
1 commit: 6f01be26fb22e2b9c89453f9a4d2eeba2babf6e6
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 22 08:39:18 2013 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 1 05:58:06 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=6f01be26
7
8 Rename a make.conf key to make_conf due to bash variable name restrictions
9
10 ---
11 catalyst/base/stagebase.py | 10 +++++-----
12 catalyst/defaults.py | 4 ++--
13 2 files changed, 7 insertions(+), 7 deletions(-)
14
15 diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
16 index b44a957..96b1c19 100644
17 --- a/catalyst/base/stagebase.py
18 +++ b/catalyst/base/stagebase.py
19 @@ -1020,7 +1020,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
20
21 def chroot_setup(self):
22 self.makeconf=read_makeconf(normpath(self.settings["chroot_path"]+
23 - self.settings["make.conf"]))
24 + self.settings["make_conf"]))
25 self.override_cbuild()
26 self.override_chost()
27 self.override_cflags()
28 @@ -1068,7 +1068,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
29
30 """ Modify and write out make.conf (for the chroot) """
31 makepath = normpath(self.settings["chroot_path"] +
32 - self.settings["make.conf"])
33 + self.settings["make_conf"])
34 cmd("rm -f " + makepath,\
35 "Could not remove " + makepath, env=self.env)
36 myf=open(makepath, "w")
37 @@ -1122,9 +1122,9 @@ class StageBase(TargetBase, ClearBase, GenBase):
38
39 myf.close()
40 makepath = normpath(self.settings["chroot_path"] +
41 - self.settings["make.conf"])
42 + self.settings["make_conf"])
43 cmd("cp " + makepath + " " + makepath + ".catalyst",\
44 - "Could not backup " + self.settings["make.conf"],env=self.env)
45 + "Could not backup " + self.settings["make_conf"],env=self.env)
46 touch(self.settings["autoresume_path"]+"chroot_setup")
47
48 def fsscript(self):
49 @@ -1172,7 +1172,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
50 cmd("rm -rf " + self.settings["chroot_path"] + self.settings["local_overlay"],
51 "Could not remove " + self.settings["local_overlay"], env=self.env)
52 cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
53 - "/etc/portage/make.conf",\
54 + self.settings["make_conf"],\
55 "Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
56
57 """ Clean up old and obsoleted files in /etc """
58
59 diff --git a/catalyst/defaults.py b/catalyst/defaults.py
60 index ce7e919..2839a3d 100644
61 --- a/catalyst/defaults.py
62 +++ b/catalyst/defaults.py
63 @@ -25,8 +25,8 @@ confdefaults={
64 "hash_function": "crc32",
65 "icecream": "/var/cache/icecream",
66 "local_overlay": "/usr/local/portage",
67 - "make.conf": "/etc/portage/make.conf",
68 - "options": "",
69 + "make_conf": "/etc/portage/make.conf",
70 + "options": set(),
71 "packagedir": "/usr/portage/packages",
72 "portdir": "/usr/portage",
73 "port_tmpdir": "/var/tmp/portage",