summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-12 02:19:01 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-12 02:19:01 +0000
commit006a77cbca947a09f3fe1054ff260dcb6ed61b93 (patch)
tree1eabed4e235842ec6f5de4441327a0f3ae67f73b
parentfa4db765c94012584b1df3949f68666f4067035e (diff)
downloadportage-006a77cbca947a09f3fe1054ff260dcb6ed61b93.tar.gz
portage-006a77cbca947a09f3fe1054ff260dcb6ed61b93.tar.bz2
portage-006a77cbca947a09f3fe1054ff260dcb6ed61b93.zip
Fix --pretend logic in Binpkg some more.
svn path=/main/trunk/; revision=12213
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index dbe00b709..eb1bd3b7a 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3184,7 +3184,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)
@@ -3369,7 +3369,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()