Skip global updates for help, version, and info actions. (trunk r15179)
authorZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:46:36 +0000 (18:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:46:36 +0000 (18:46 -0000)
svn path=/main/branches/2.1.7/; revision=15241

pym/_emerge/main.py

index 3b1475b534993a791381f44faf30984773e37d29..d592377f90027b15bc09505c791ca9c356dd4462 100644 (file)
@@ -1027,7 +1027,8 @@ def emerge_main():
        if rval != os.EX_OK:
                return rval
 
-       if portage._global_updates(trees, mtimedb["updates"]):
+       if myaction not in ('help', 'info', 'version') and \
+               portage._global_updates(trees, mtimedb["updates"]):
                mtimedb.commit()
                # Reload the whole config from scratch.
                settings, trees, mtimedb = load_emerge_config(trees=trees)