Only generate PORTAGE_COUNTER_HASH for actions that can involve vdb
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:38:51 +0000 (06:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:38:51 +0000 (06:38 -0000)
modification. (trunk r12753)

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

pym/_emerge/__init__.py

index 846bde7b1cde26e5249b2b2f9fa7a6343e666046..c03d804e13313c16bb2646b3ca2e488109229109 100644 (file)
@@ -14783,7 +14783,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")