From: Zac Medico Date: Thu, 29 Jun 2006 19:02:15 +0000 (-0000) Subject: Replace references to portage.root with local settings[ROOT]. X-Git-Tag: v2.1.1~345 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=73f3ef4f9344fb00dd4036228749723904db8bf0;p=portage.git Replace references to portage.root with local settings[ROOT]. svn path=/main/trunk/; revision=3695 --- diff --git a/bin/emerge b/bin/emerge index e9f4c1a9f..892ea6b6c 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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.",