From: Zac Medico Date: Sun, 22 Aug 2010 21:15:04 +0000 (-0700) Subject: Make Binpkg call prepare_build_dirs() before trying to clean the old X-Git-Tag: v2.2_rc68~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=177b719a112d2661b7d6da669625b8e61deb6062;p=portage.git Make Binpkg call prepare_build_dirs() before trying to clean the old log, so PORTAGE_LOG_FILE is initialized. --- 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)