From 7b6f49cfae6723d86f53fda29b662764f1f967e1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 05:48:16 +0000 Subject: [PATCH] Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode. (trunk r12637) svn path=/main/branches/2.1.6/; revision=12909 --- pym/_emerge/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 2a02262c1..e52298f54 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -14649,9 +14649,10 @@ def emerge_main(): mysettings = trees[myroot]["vartree"].settings mysettings.unlock() adjust_config(myopts, mysettings) - mysettings["PORTAGE_COUNTER_HASH"] = \ - trees[myroot]["vartree"].dbapi._counter_hash() - mysettings.backup_changes("PORTAGE_COUNTER_HASH") + if "--pretend" not in myopts: + mysettings["PORTAGE_COUNTER_HASH"] = \ + trees[myroot]["vartree"].dbapi._counter_hash() + mysettings.backup_changes("PORTAGE_COUNTER_HASH") mysettings.lock() del myroot, mysettings -- 2.26.2