Lines 3825-3832
def run_action(emerge_config):
Link Here
|
3825 |
# check if root user is the current user for the actions where emerge needs this |
3825 |
# check if root user is the current user for the actions where emerge needs this |
3826 |
if portage.data.secpass < 2: |
3826 |
if portage.data.secpass < 2: |
3827 |
# We've already allowed "--version" and "--help" above. |
3827 |
# We've already allowed "--version" and "--help" above. |
3828 |
if "--pretend" not in emerge_config.opts and \ |
3828 |
if not "fakeroot" in emerge_config.target_config.settings.features and "--pretend" not in \ |
3829 |
emerge_config.action not in ("search", "info"): |
3829 |
emerge_config.opts and emerge_config.action not in ("search", "info"): |
3830 |
need_superuser = emerge_config.action in ('clean', 'depclean', |
3830 |
need_superuser = emerge_config.action in ('clean', 'depclean', |
3831 |
'deselect', 'prune', 'unmerge') or not \ |
3831 |
'deselect', 'prune', 'unmerge') or not \ |
3832 |
(fetchonly or \ |
3832 |
(fetchonly or \ |
3833 |
- |
|
|