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

Author: zmedico
Date: 2009-03-11 05:48:16 +0000 (Wed, 11 Mar 2009)
New Revision: 12909

Modified:
   main/branches/2.1.6/pym/_emerge/__init__.py
Log:
Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.
(trunk r12637)

Modified: main/branches/2.1.6/pym/_emerge/__init__.py
===================================================================
--- main/branches/2.1.6/pym/_emerge/__init__.py	2009-03-11 05:47:28 UTC (rev 12908)
+++ main/branches/2.1.6/pym/_emerge/__init__.py	2009-03-11 05:48:16 UTC (rev 12909)
@@ -14649,9 +14649,10 @@
 		mysettings =  trees[myroot]["vartree"].settings
 		mysettings.unlock()
 		adjust_config(myopts, mysettings)
-		mysettings["PORTAGE_COUNTER_HASH"] = \
-			trees[myroot]["vartree"].dbapi._counter_hash()
-		mysettings.backup_changes("PORTAGE_COUNTER_HASH")
+		if "--pretend" not in myopts:
+			mysettings["PORTAGE_COUNTER_HASH"] = \
+				trees[myroot]["vartree"].dbapi._counter_hash()
+			mysettings.backup_changes("PORTAGE_COUNTER_HASH")
 		mysettings.lock()
 		del myroot, mysettings
 




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

only message in thread, other threads:[~2009-03-11  5:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11  5:48 [gentoo-commits] portage r12909 - 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