Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:48:16 +0000 (05:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:48:16 +0000 (05:48 -0000)
(trunk r12637)

svn path=/main/branches/2.1.6/; revision=12909

pym/_emerge/__init__.py

index 2a02262c165867aa7033ef3de2c9975340e069d8..e52298f54d4522f8a25e9ef212ad300461d9b5c7 100644 (file)
@@ -14649,9 +14649,10 @@ def emerge_main():
                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