summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-19 07:10:34 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-19 07:10:34 +0000
commitf46325f42d35d85c4412ec345563230bfdfe7717 (patch)
treed8772587adacceb18a637c50d6fff437a02e3230
parentb4248e4e8bc4cd2acd83bd4164c10ca6c4adf493 (diff)
downloadportage-f46325f42d35d85c4412ec345563230bfdfe7717.tar.gz
portage-f46325f42d35d85c4412ec345563230bfdfe7717.tar.bz2
portage-f46325f42d35d85c4412ec345563230bfdfe7717.zip
Inside post_emerge(), skip the vardbapi counter check when in --pretend
mode (significant performance improvement). Thanks to Marat Radchenko (slonopotamus) for reporting. svn path=/main/trunk/; revision=12636
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 0200ce30c..8c8541313 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -12220,8 +12220,8 @@ def post_emerge(root_config, myopts, mtimedb, retval):
_flush_elog_mod_echo()
counter_hash = settings.get("PORTAGE_COUNTER_HASH")
- if counter_hash is not None and \
- counter_hash == vardbapi._counter_hash():
+ if "--pretend" in myopts or (counter_hash is not None and \
+ counter_hash == vardbapi._counter_hash()):
display_news_notification(root_config, myopts)
# If vdb state has not changed then there's nothing else to do.
sys.exit(retval)