From: Zac Medico Date: Sat, 16 Sep 2006 07:33:09 +0000 (-0000) Subject: In portage.commit_mtimedb(), use the commit() method when possible, so that the mtime... X-Git-Tag: v2.1.1-r1~69 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dce55fb0765fb4454ac62098de9214c31b094e1a;p=portage.git 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 --- 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