From b4a961c27e2ad3e9fd1516b2ecd2c608a9767a06 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 19 Feb 2009 07:29:10 +0000 Subject: [PATCH] Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode. svn path=/main/trunk/; revision=12637 --- 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 8c8541313..830a6d5b4 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -15136,9 +15136,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