From: Zac Medico Date: Wed, 27 Dec 2006 00:11:18 +0000 (-0000) Subject: Allow dep_check to use the global db for compatibility (fixes python-updater breakage). X-Git-Tag: v2.1.2~212 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=274f668abe2bed4152842de1e509666560266a0f;p=portage.git Allow dep_check to use the global db for compatibility (fixes python-updater breakage). svn path=/main/trunk/; revision=5398 --- 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