From c22c5e2e7bd85ed8741b9984b62790ec182befce Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:38:51 +0000 Subject: [PATCH] Only generate PORTAGE_COUNTER_HASH for actions that can involve vdb modification. (trunk r12753) svn path=/main/branches/2.1.6/; revision=13001 --- pym/_emerge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- 2.26.2