From: Zac Medico Date: Wed, 11 Mar 2009 06:38:51 +0000 (-0000) Subject: Only generate PORTAGE_COUNTER_HASH for actions that can involve vdb X-Git-Tag: v2.1.6.8~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c22c5e2e7bd85ed8741b9984b62790ec182befce;p=portage.git Only generate PORTAGE_COUNTER_HASH for actions that can involve vdb modification. (trunk r12753) svn path=/main/branches/2.1.6/; revision=13001 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 846bde7b1..c03d804e1 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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")