Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.
authorZac Medico <zmedico@gentoo.org>
Thu, 19 Feb 2009 07:29:10 +0000 (07:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 19 Feb 2009 07:29:10 +0000 (07:29 -0000)
svn path=/main/trunk/; revision=12637

pym/_emerge/__init__.py

index 8c8541313870f4026b8d0d918c8dc121d050d33b..830a6d5b4a0b3d313430e90e1e7acd9e636c509f 100644 (file)
@@ -15136,9 +15136,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