Gentoo Archives: gentoo-catalyst

From: Matt Turner <mattst88@g.o>
To: gentoo-catalyst@l.g.o
Cc: Matt Turner <mattst88@g.o>
Subject: [gentoo-catalyst] [PATCH 5/8] catalyst: Drop unnecessary clear_path()
Date: Fri, 15 May 2020 06:10:27
Message-Id: 20200515061001.2581484-5-mattst88@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 1/8] doc: Remove extra asterisk by Matt Turner
1 open(..., 'w') truncates the file.
2
3 Signed-off-by: Matt Turner <mattst88@g.o>
4 ---
5 catalyst/base/stagebase.py | 1 -
6 1 file changed, 1 deletion(-)
7
8 diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
9 index 964a5129..68945da8 100644
10 --- a/catalyst/base/stagebase.py
11 +++ b/catalyst/base/stagebase.py
12 @@ -974,7 +974,6 @@ class StageBase(TargetBase, ClearBase, GenBase):
13 # Modify and write out make.conf (for the chroot)
14 makepath = normpath(self.settings["chroot_path"] +
15 self.settings["make_conf"])
16 - clear_path(makepath)
17 with open(makepath, "w") as myf:
18 log.notice("Writing the stage make.conf to: %s" % makepath)
19 myf.write("# These settings were set by the catalyst build script "
20 --
21 2.26.2