public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r12244 - main/branches/2.1.6/pym/_emerge
@ 2008-12-12 21:51 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-12-12 21:51 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-12-12 21:51:21 +0000 (Fri, 12 Dec 2008)
New Revision: 12244

Modified:
   main/branches/2.1.6/pym/_emerge/__init__.py
Log:
Fix --pretend logic in Binpkg some more. (trunk r12213)

Modified: main/branches/2.1.6/pym/_emerge/__init__.py
===================================================================
--- main/branches/2.1.6/pym/_emerge/__init__.py	2008-12-12 21:50:43 UTC (rev 12243)
+++ main/branches/2.1.6/pym/_emerge/__init__.py	2008-12-12 21:51:21 UTC (rev 12244)
@@ -3165,7 +3165,7 @@
 
 		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 @@
 		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()




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-12 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-12 21:51 [gentoo-commits] portage r12244 - main/branches/2.1.6/pym/_emerge Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox