diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-27 00:11:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-27 00:11:18 +0000 |
commit | 274f668abe2bed4152842de1e509666560266a0f (patch) | |
tree | 81856aa990eb8f0494973b76cd03a8356d78b973 | |
parent | 07e1f307333b97d2c133211ce774f1f07573d845 (diff) | |
download | portage-274f668abe2bed4152842de1e509666560266a0f.tar.gz portage-274f668abe2bed4152842de1e509666560266a0f.tar.bz2 portage-274f668abe2bed4152842de1e509666560266a0f.zip |
Allow dep_check to use the global db for compatibility (fixes python-updater breakage).
svn path=/main/trunk/; revision=5398
-rw-r--r-- | pym/portage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index cb6ce4de4..9d2526f21 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4039,7 +4039,8 @@ def dep_check(depstring, mydbapi, mysettings, use="yes", mode=None, myuse=None, """Takes a depend string and parses the condition.""" edebug = mysettings.get("PORTAGE_DEBUG", None) == "1" #check_config_instance(mysettings) - + if trees is None: + trees = globals()["db"] if use=="yes": if myuse is None: #default behavior |