From c775ceffc1bc219a2789cc0f1f1f68943090662e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Apr 2006 10:33:32 +0000 Subject: Prevent a NameError in commit_mtimedb() when the portage.mtimedb attribute does not exist. svn path=/main/trunk/; revision=3272 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3-1-g7c22