diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-19 07:29:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-19 07:29:10 +0000 |
commit | b4a961c27e2ad3e9fd1516b2ecd2c608a9767a06 (patch) | |
tree | 79da288a3bc4cb5f7571f8a890e9a32a558b9619 | |
parent | f46325f42d35d85c4412ec345563230bfdfe7717 (diff) | |
download | portage-b4a961c27e2ad3e9fd1516b2ecd2c608a9767a06.tar.gz portage-b4a961c27e2ad3e9fd1516b2ecd2c608a9767a06.tar.bz2 portage-b4a961c27e2ad3e9fd1516b2ecd2c608a9767a06.zip |
Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.
svn path=/main/trunk/; revision=12637
-rw-r--r-- | pym/_emerge/__init__.py | 7 |
1 files 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 |