Prevent a NameError in commit_mtimedb() when the portage.mtimedb attribute does not...
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Apr 2006 10:33:32 +0000 (10:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Apr 2006 10:33:32 +0000 (10:33 -0000)
svn path=/main/trunk/; revision=3272

pym/portage.py

index e33be078ab2ec2abf28a514a99aec59b23eccc82..a0905aa27e988df4de3bbbb9df8aa23957034c13 100644 (file)
@@ -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: