summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-29 08:11:40 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-29 08:11:40 +0000
commit57e7644209e9a1a08eddadd43597d7bbbe415e5c (patch)
treec3b5a6926f54a11aee61a8dc621c86793aced4ad
parent627993585f55e0c2f6bd30664e1e4fe21c66549e (diff)
downloadportage-57e7644209e9a1a08eddadd43597d7bbbe415e5c.tar.gz
portage-57e7644209e9a1a08eddadd43597d7bbbe415e5c.tar.bz2
portage-57e7644209e9a1a08eddadd43597d7bbbe415e5c.zip
Return early from portage.commit_mtimedb() when mtimedb is None.
svn path=/main/trunk/; revision=3269
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 4df390067..1a4ef2359 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6603,6 +6603,8 @@ def parse_updates(mycontent):
def commit_mtimedb(mydict=None, filename=None):
if mydict is None:
global mtimedb
+ if mtimedb is None:
+ return
mydict = mtimedb
if filename is None:
global mtimedbfile