From: Zac Medico Date: Sat, 29 Apr 2006 10:33:32 +0000 (-0000) Subject: Prevent a NameError in commit_mtimedb() when the portage.mtimedb attribute does not... X-Git-Tag: v2.1_pre10~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c775ceffc1bc219a2789cc0f1f1f68943090662e;p=portage.git Prevent a NameError in commit_mtimedb() when the portage.mtimedb attribute does not exist. svn path=/main/trunk/; revision=3272 --- diff --git a/pym/portage.py b/pym/portage.py index e33be078a..a0905aa27 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6605,7 +6605,7 @@ def parse_updates(mycontent): def commit_mtimedb(mydict=None, filename=None): if mydict is None: global mtimedb - if mtimedb is None: + if "mtimedb" not in globals() or mtimedb is None: return mydict = mtimedb if filename is None: