Lines 2086-2101
Link Here
|
2086 |
fi |
2086 |
fi |
2087 |
} |
2087 |
} |
2088 |
|
2088 |
|
2089 |
[[ -n $EBUILD_SH_ARGS ]] && ebuild_main |
2089 |
if [[ $EBUILD_PHASE = depend ]] ; then |
|
|
2090 |
ebuild_main |
2091 |
elif [[ -n $EBUILD_SH_ARGS ]] ; then |
2092 |
( |
2093 |
# Don't allow subprocesses to inherit the pipe which |
2094 |
# emerge uses to monitor ebuild.sh. |
2095 |
exec 9>&- |
2090 |
|
2096 |
|
2091 |
# Save the env only for relevant phases. |
2097 |
ebuild_main |
2092 |
if [ -n "${EBUILD_SH_ARGS}" ] && \ |
2098 |
|
2093 |
! hasq ${EBUILD_SH_ARGS} clean depend help info nofetch ; then |
2099 |
# Save the env only for relevant phases. |
2094 |
# Save current environment and touch a success file. (echo for success) |
2100 |
if ! hasq "$EBUILD_SH_ARGS" clean help info nofetch ; then |
2095 |
umask 002 |
2101 |
umask 002 |
2096 |
save_ebuild_env | filter_readonly_variables > "${T}/environment" |
2102 |
save_ebuild_env | filter_readonly_variables > "$T/environment" |
2097 |
chown portage:portage "${T}/environment" &>/dev/null |
2103 |
chown portage:portage "$T/environment" &>/dev/null |
2098 |
chmod g+w "${T}/environment" &>/dev/null |
2104 |
chmod g+w "$T/environment" &>/dev/null |
|
|
2105 |
fi |
2106 |
exit 0 |
2107 |
) |
2108 |
exit $? |
2099 |
fi |
2109 |
fi |
2100 |
|
2110 |
|
2101 |
# Do not exit when ebuild.sh is sourced by other scripts. |
2111 |
# Do not exit when ebuild.sh is sourced by other scripts. |