Fix check_config_instance() weirdness when the ebuild command reloads the portage...
authorZac Medico <zmedico@gentoo.org>
Sat, 23 Jun 2007 23:03:17 +0000 (23:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 23 Jun 2007 23:03:17 +0000 (23:03 -0000)
svn path=/main/trunk/; revision=6982

pym/portage/dbapi/porttree.py

index 56c711d13246187e007fe231b3d4428da5bee6ff..1fe162bff2d2fa15fe93507a7c59f850bf02a19d 100644 (file)
@@ -19,7 +19,7 @@ from portage.versions import pkgsplit, catpkgsplit, best
 import portage.gpg, portage.checksum
 
 from portage import eclass_cache, auxdbkeys, auxdbkeylen, doebuild, flatten, \
-       listdir, dep_expand, eapi_is_supported, key_expand, dep_check, config
+       listdir, dep_expand, eapi_is_supported, key_expand, dep_check
 
 import os, stat, sys
 
@@ -31,6 +31,7 @@ class portdbapi(dbapi):
        def __init__(self, porttree_root, mysettings=None):
                portdbapi.portdbapi_instances.append(self)
 
+               from portage import config
                if mysettings:
                        self.mysettings = mysettings
                else: