summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: