From d14eaa534fb167dc0dfc8810ca1103d960fbefcd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 12 Dec 2008 21:51:21 +0000 Subject: [PATCH] Fix --pretend logic in Binpkg some more. (trunk r12213) svn path=/main/branches/2.1.6/; revision=12244 --- pym/_emerge/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index a1783a001..418acebb7 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3165,7 +3165,7 @@ class Binpkg(CompositeTask): pkg = self.pkg pkg_count = self.pkg_count - if not self.opts.fetchonly: + if not (self.opts.pretend or self.opts.fetchonly): self._build_dir.lock() try: shutil.rmtree(self._build_dir.dir_path) @@ -3350,7 +3350,7 @@ class Binpkg(CompositeTask): self.wait() def _unlock_builddir(self): - if self.opts.fetchonly: + if self.opts.pretend or self.opts.fetchonly: return portage.elog.elog_process(self.pkg.cpv, self.settings) self._build_dir.unlock() -- 2.26.2