diff options
-rw-r--r-- | pym/_emerge/__init__.py | 3 |
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") |