diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-05-25 17:34:28 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-05-25 17:34:28 -0700 |
commit | 33b0517f278d88fa7351dbff31e1dbc745080ef5 (patch) | |
tree | 3097b7458ace0740977188aaf66d8a75428ed8b4 | |
parent | Bug #321145: Don't ignore exit status of filter-bash-environment.py and check... (diff) | |
download | portage-idfetch-33b0517f278d88fa7351dbff31e1dbc745080ef5.tar.gz portage-idfetch-33b0517f278d88fa7351dbff31e1dbc745080ef5.tar.bz2 portage-idfetch-33b0517f278d88fa7351dbff31e1dbc745080ef5.zip |
Use 'assert' to check ${PIPESTATUS[@]} from save_ebuild_env calls.
-rwxr-xr-x | bin/ebuild.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index ae4fb552..4778afbe 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1093,6 +1093,7 @@ dyn_install() { save_ebuild_env --exclude-init-phases | filter_readonly_variables \ --filter-path --filter-sandbox --allow-extra-vars > environment + assert "save_ebuild_env failed" bzip2 -f9 environment @@ -2033,6 +2034,7 @@ ebuild_main() { filter_readonly_variables --filter-path \ --filter-sandbox --allow-extra-vars \ | bzip2 -c -f9 > "$PORTAGE_UPDATE_ENV" + assert "save_ebuild_env failed" fi ;; unpack|prepare|configure|compile|test|clean|install) @@ -2183,6 +2185,7 @@ elif [[ -n $EBUILD_SH_ARGS ]] ; then if ! hasq "$EBUILD_SH_ARGS" clean help info nofetch ; then umask 002 save_ebuild_env | filter_readonly_variables > "$T/environment" + assert "save_ebuild_env failed" chown portage:portage "$T/environment" &>/dev/null chmod g+w "$T/environment" &>/dev/null fi |