Replace references to portage.root with local settings[ROOT].
authorZac Medico <zmedico@gentoo.org>
Thu, 29 Jun 2006 19:02:15 +0000 (19:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 29 Jun 2006 19:02:15 +0000 (19:02 -0000)
svn path=/main/trunk/; revision=3695

bin/emerge

index e9f4c1a9fa75b241a670d347276ec5e9bd874c7a..892ea6b6cbb8c7b7c0a5db759f57b138a7667b52 100755 (executable)
@@ -2818,7 +2818,8 @@ def action_sync(settings, trees, myopts, myaction):
        portage.global_updates(
                settings, trees, portage.mtimedb["updates"])
        mybestpv=portage.portdb.xmatch("bestmatch-visible","sys-apps/portage")
-       mypvs=portage.best(trees[portage.root]["vartree"].dbapi.match("sys-apps/portage"))
+       mypvs = portage.best(
+               trees[settings["ROOT"]]["vartree"].dbapi.match("sys-apps/portage"))
 
        chk_updated_cfg_files("/", settings.get("CONFIG_PROTECT","").split())
 
@@ -3005,9 +3006,11 @@ def action_config(settings, trees, myopts, myfiles):
        else:
                print "Configuring pkg..."
        print
-       ebuildpath = trees[portage.root]["vartree"].dbapi.findname(pkg)
+       ebuildpath = trees[settings["ROOT"]]["vartree"].dbapi.findname(pkg)
        mysettings = portage.config(clone=settings)
-       portage.doebuild(ebuildpath,"config",portage.root,mysettings,debug=("--debug" in myopts),cleanup=True,tree="vartree")
+       portage.doebuild(ebuildpath, "config", settings["ROOT"], mysettings,
+               debug=(settings.get("PORTAGE_DEBUG", "") == 1), cleanup=True,
+               tree="vartree")
        print
 
 def action_info(settings, trees, myopts):
@@ -3136,7 +3139,7 @@ def action_depclean(settings, trees, myopts, spinner):
        info_mtimes = portage.mtimedb["info"]
        syslist = getlist(settings, "system")
        worldlist = getlist(settings, "world")
-       myvarlist=portage.vardbapi(portage.root).cp_all()
+       myvarlist = vartree.dbapi.cp_all()
 
        if not syslist:
                print "\n!!! You have no system list.",