summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/EbuildExecuter.py3
-rw-r--r--pym/_emerge/EbuildFetcher.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/pym/_emerge/EbuildExecuter.py b/pym/_emerge/EbuildExecuter.py
index b9c87f082..adb91aa00 100644
--- a/pym/_emerge/EbuildExecuter.py
+++ b/pym/_emerge/EbuildExecuter.py
@@ -40,9 +40,8 @@ class EbuildExecuter(CompositeTask):
pkg = self.pkg
scheduler = self.scheduler
settings = self.settings
- cleanup = 1
+ cleanup = 0
- # This initializes PORTAGE_LOG_FILE.
portage.prepare_build_dirs(pkg.root, settings, cleanup)
setup_phase = EbuildPhase(background=self.background,
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py
index e5d8bf4a8..5059e998b 100644
--- a/pym/_emerge/EbuildFetcher.py
+++ b/pym/_emerge/EbuildFetcher.py
@@ -42,7 +42,9 @@ class EbuildFetcher(SpawnProcess):
self._build_dir = EbuildBuildDir(pkg=self.pkg, settings=settings)
self._build_dir.lock()
self._build_dir.clean_log()
- portage.prepare_build_dirs(self.pkg.root, self._build_dir.settings, 0)
+ cleanup=1
+ # This initializes PORTAGE_LOG_FILE.
+ portage.prepare_build_dirs(self.pkg.root, self._build_dir.settings, cleanup)
if self.logfile is None:
self.logfile = settings.get("PORTAGE_LOG_FILE")