summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-29 10:33:32 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-29 10:33:32 +0000
commitc775ceffc1bc219a2789cc0f1f1f68943090662e (patch)
tree785880570831fa86c007c80662d3a118fcaa1943
parentMove the legacy global initializations into a function and allow them to be d... (diff)
downloadportage-c775ceffc1bc219a2789cc0f1f1f68943090662e.tar.gz
portage-c775ceffc1bc219a2789cc0f1f1f68943090662e.tar.bz2
portage-c775ceffc1bc219a2789cc0f1f1f68943090662e.zip
Prevent a NameError in commit_mtimedb() when the portage.mtimedb attribute does not exist.
svn path=/main/trunk/; revision=3272
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
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: