diff options
-rw-r--r-- | pym/_emerge/actions.py | 5 | ||||
-rw-r--r-- | pym/_emerge/main.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 5252b4985..b76195cb9 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2339,7 +2339,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): 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": @@ -2809,7 +2809,8 @@ def load_emerge_config(trees=None): 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)) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 57c7245bf..a2f6e9b9e 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -361,7 +361,7 @@ def post_emerge(root_config, myopts, mtimedb, retval): 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): |