Skip global updates for help, version, and info actions.
authorZac Medico <zmedico@gentoo.org>
Fri, 8 Jan 2010 20:15:45 +0000 (20:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 8 Jan 2010 20:15:45 +0000 (20:15 -0000)
svn path=/main/trunk/; revision=15179

pym/_emerge/main.py

index 98b8478a8765a176c680cbef064d7df6e03c2cd8..a2245892ab1d7a83cc7b0f2459dabed5328fdd06 100644 (file)
@@ -1169,7 +1169,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)