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())
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):
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.",