summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-05 03:53:38 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-05 03:53:38 +0000
commitd3d02a36bfebe8a592eb05ae342898443b2ad6c2 (patch)
treec68a2d38316e7df7c1514d4e4009369d8dcf7cc0
parent31b309b1c91e66e9a8cff953f128b03483d93ae4 (diff)
downloadportage-d3d02a36bfebe8a592eb05ae342898443b2ad6c2.tar.gz
portage-d3d02a36bfebe8a592eb05ae342898443b2ad6c2.tar.bz2
portage-d3d02a36bfebe8a592eb05ae342898443b2ad6c2.zip
Only generate PORTAGE_COUNTER_HASH for actions that can involve vdb
modification. svn path=/main/trunk/; revision=12753
-rw-r--r--pym/_emerge/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 4f4ed1e1c..5600ced6f 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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")