From 177b719a112d2661b7d6da669625b8e61deb6062 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Aug 2010 14:15:04 -0700 Subject: [PATCH] Make Binpkg call prepare_build_dirs() before trying to clean the old log, so PORTAGE_LOG_FILE is initialized. --- pym/_emerge/Binpkg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/Binpkg.py b/pym/_emerge/Binpkg.py index 878fcea6d..acc38d3ca 100644 --- a/pym/_emerge/Binpkg.py +++ b/pym/_emerge/Binpkg.py @@ -92,11 +92,11 @@ class Binpkg(CompositeTask): pkg_count = self.pkg_count if not (self.opts.pretend or self.opts.fetchonly): self._build_dir.lock() + # Initialze PORTAGE_LOG_FILE (clean_log won't work without it). + portage.prepare_build_dirs(self.settings["ROOT"], self.settings, 1) # If necessary, discard old log so that we don't # append to it. self._build_dir.clean_log() - # Initialze PORTAGE_LOG_FILE. - portage.prepare_build_dirs(self.settings["ROOT"], self.settings, 1) fetcher = BinpkgFetcher(background=self.background, logfile=self.settings.get("PORTAGE_LOG_FILE"), pkg=self.pkg, pretend=self.opts.pretend, scheduler=self.scheduler) -- 2.26.2