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 |