Only generate PORTAGE_COUNTER_HASH for actions that can involve vdb
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Mar 2009 03:53:38 +0000 (03:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Mar 2009 03:53:38 +0000 (03:53 -0000)
modification.

svn path=/main/trunk/; revision=12753

pym/_emerge/__init__.py

index 4f4ed1e1c32c8d0241d3c2197c2224e7aec0b1d8..5600ced6f0a7b99059f56570293312eeeff1a266 100644 (file)
@@ -15270,7 +15270,8 @@ def emerge_main():
                mysettings =  trees[myroot]["vartree"].settings
                mysettings.unlock()
                adjust_config(myopts, mysettings)
-               if "--pretend" not in myopts:
+               if '--pretend' not in myopts and myaction in \
+                       (None, 'clean', 'depclean', 'prune', 'unmerge'):
                        mysettings["PORTAGE_COUNTER_HASH"] = \
                                trees[myroot]["vartree"].dbapi._counter_hash()
                        mysettings.backup_changes("PORTAGE_COUNTER_HASH")