Allow dep_check to use the global db for compatibility (fixes python-updater breakage).
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Dec 2006 00:11:18 +0000 (00:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Dec 2006 00:11:18 +0000 (00:11 -0000)
svn path=/main/trunk/; revision=5398

pym/portage.py

index cb6ce4de499d1026ea29a3abb478e4c537f5e149..9d2526f21995cd3d1a578005105a1affa0450897 100644 (file)
@@ -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