diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:47:28 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:47:28 +0000 |
commit | 152524a12f8782272f6ecd8643a2c6b0c2601fb8 (patch) | |
tree | 8ee62e00e59916df71c9bb1e3241d8078da2ec14 /pym/_emerge | |
parent | 335b3da47c23b9c84d65efce793dd0fa8f69c679 (diff) | |
download | portage-152524a12f8782272f6ecd8643a2c6b0c2601fb8.tar.gz portage-152524a12f8782272f6ecd8643a2c6b0c2601fb8.tar.bz2 portage-152524a12f8782272f6ecd8643a2c6b0c2601fb8.zip |
Inside post_emerge(), skip the vardbapi counter check when in --pretend
mode (significant performance improvement). Thanks to Marat Radchenko
(slonopotamus) for reporting. (trunk r12636)
svn path=/main/branches/2.1.6/; revision=12908
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 86bdd706d..2a02262c1 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -12046,8 +12046,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) |