trees[settings["ROOT"]]["vartree"].dbapi.match(
portage.const.PORTAGE_PACKAGE_ATOM))
- chk_updated_cfg_files("/",
+ chk_updated_cfg_files(settings["EROOT"],
portage.util.shlex_split(settings.get("CONFIG_PROTECT", "")))
if myaction != "metadata":
QueryCommand._db = trees
return settings, trees, mtimedb
-def chk_updated_cfg_files(target_root, config_protect):
+def chk_updated_cfg_files(eroot, config_protect):
+ target_root = eroot
result = list(
portage.util.find_updated_config_files(target_root, config_protect))
if vdb_lock:
portage.locks.unlockdir(vdb_lock)
- chk_updated_cfg_files(target_root, config_protect)
+ chk_updated_cfg_files(settings['EROOT'], config_protect)
display_news_notification(root_config, myopts)
if retval in (None, os.EX_OK) or (not "--pretend" in myopts):