Merged from trunk 5397:5398
authorFabian Groffen <grobian@gentoo.org>
Wed, 27 Dec 2006 18:03:15 +0000 (18:03 -0000)
committerFabian Groffen <grobian@gentoo.org>
Wed, 27 Dec 2006 18:03:15 +0000 (18:03 -0000)
Allow dep_check to use the global db for compatibility (fixes
python-updater breakage).

svn path=/main/branches/prefix/; revision=5400

pym/portage.py

index b7e7f0d4541e7ff933afa372493d881528a77db6..25ae06e5166e9db4c412655d715a2bfd0ce1dfed 100644 (file)
@@ -4046,7 +4046,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