From 274f668abe2bed4152842de1e509666560266a0f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 27 Dec 2006 00:11:18 +0000 Subject: [PATCH] Allow dep_check to use the global db for compatibility (fixes python-updater breakage). svn path=/main/trunk/; revision=5398 --- pym/portage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2