@@ -, +, @@ --- pym/_emerge/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/pym/_emerge/actions.py +++ a/pym/_emerge/actions.py @@ -3825,8 +3825,8 @@ def run_action(emerge_config): # check if root user is the current user for the actions where emerge needs this if portage.data.secpass < 2: # We've already allowed "--version" and "--help" above. - if "--pretend" not in emerge_config.opts and \ - emerge_config.action not in ("search", "info"): + if not "fakeroot" in emerge_config.target_config.settings.features and "--pretend" not in \ + emerge_config.opts and emerge_config.action not in ("search", "info"): need_superuser = emerge_config.action in ('clean', 'depclean', 'deselect', 'prune', 'unmerge') or not \ (fetchonly or \ --