summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-02-18 19:25:23 +0000
committerZac Medico <zmedico@gentoo.org>2006-02-18 19:25:23 +0000
commitdc135d138dd29b09de550fa253aa4be27f0a3d9a (patch)
tree3f87d1964cbf992766137fb9ba27ffe969e34479
parent8e70b841bb5320e7e369e0e7d7568d91412f1713 (diff)
downloadportage-dc135d138dd29b09de550fa253aa4be27f0a3d9a.tar.gz
portage-dc135d138dd29b09de550fa253aa4be27f0a3d9a.tar.bz2
portage-dc135d138dd29b09de550fa253aa4be27f0a3d9a.zip
Consider global updates that proceed quickly as a single mtimedb transaction.
svn path=/main/trunk/; revision=2732
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index cf238850c..c6a795092 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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 \