diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:48:16 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:48:16 +0000 |
commit | 7b6f49cfae6723d86f53fda29b662764f1f967e1 (patch) | |
tree | a76e7ab58169600eb76d40aadbe7355b227d6c6c /pym/_emerge | |
parent | 152524a12f8782272f6ecd8643a2c6b0c2601fb8 (diff) | |
download | portage-7b6f49cfae6723d86f53fda29b662764f1f967e1.tar.gz portage-7b6f49cfae6723d86f53fda29b662764f1f967e1.tar.bz2 portage-7b6f49cfae6723d86f53fda29b662764f1f967e1.zip |
Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.
(trunk r12637)
svn path=/main/branches/2.1.6/; revision=12909
Diffstat (limited to 'pym/_emerge')
-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 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 |