summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-16 07:33:09 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-16 07:33:09 +0000
commitdce55fb0765fb4454ac62098de9214c31b094e1a (patch)
treeedc96b2501d0b630d48bba3c4b340354b41ba17f /pym
parentda89627328c34e7f8e7e734767e910892f675975 (diff)
downloadportage-dce55fb0765fb4454ac62098de9214c31b094e1a.tar.gz
portage-dce55fb0765fb4454ac62098de9214c31b094e1a.tar.bz2
portage-dce55fb0765fb4454ac62098de9214c31b094e1a.zip
In portage.commit_mtimedb(), use the commit() method when possible, so that the mtimedb is only rewritten when it has been modified.
svn path=/main/trunk/; revision=4464
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d07363371..775fc4385 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6573,7 +6573,8 @@ def commit_mtimedb(mydict=None, filename=None):
global mtimedb
if "mtimedb" not in globals() or mtimedb is None:
return
- mydict = mtimedb
+ mtimedb.commit()
+ return
if filename is None:
global mtimedbfile
filename = mtimedbfile