diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-09-16 07:33:09 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-09-16 07:33:09 +0000 |
commit | dce55fb0765fb4454ac62098de9214c31b094e1a (patch) | |
tree | edc96b2501d0b630d48bba3c4b340354b41ba17f | |
parent | da89627328c34e7f8e7e734767e910892f675975 (diff) | |
download | portage-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
-rw-r--r-- | pym/portage.py | 3 |
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 |