diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-04-29 10:33:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-04-29 10:33:32 +0000 |
commit | c775ceffc1bc219a2789cc0f1f1f68943090662e (patch) | |
tree | 785880570831fa86c007c80662d3a118fcaa1943 | |
parent | ff95742f3a582abe07253eb027be97f80003fed0 (diff) | |
download | portage-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.py | 2 |
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: |