Consider global updates that proceed quickly as a single mtimedb transaction.
authorZac Medico <zmedico@gentoo.org>
Sat, 18 Feb 2006 19:25:23 +0000 (19:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 18 Feb 2006 19:25:23 +0000 (19:25 -0000)
svn path=/main/trunk/; revision=2732

pym/portage.py

index cf238850c898cbfa6765b27b7771bbcf84b903e1..c6a79509298c03c6aefe5e64ebfdbc2bf3ce81b7 100644 (file)
@@ -6942,7 +6942,9 @@ if (secpass==2) and (not os.environ.has_key("SANDBOX_ACTIVE")):
                                         (settings["PORTAGE_CALLER"] == "fixpackages"):
                                        didupdate=1
                                        myupd.extend(do_upgrade(mykey))
-                                       commit_mtimedb() # This lets us save state for C-c.
+                       # The above global updates proceed quickly, so they
+                       # are considered a single mtimedb transaction.
+                       commit_mtimedb()
 
                        # We gotta do the brute force updates for these now.
                        if (settings["PORTAGE_CALLER"] in ["fixpackages"]) or \