Commit 7a64b9aa authored by Paweł Hajdan, Jr's avatar Paweł Hajdan, Jr

Better handle failures in pipes in debian/build.sh

- add -o pipefail
- do not hide stderr

BUG=none
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/582293002

Cr-Commit-Position: refs/heads/master@{#296117}
parent 022138b5
......@@ -8,6 +8,7 @@
# builds don't add the "${BUILDDIR}/installer/" files needed for packaging.
set -e
set -o pipefail
if [ "$VERBOSE" ]; then
set -x
fi
......@@ -260,7 +261,7 @@ touch debian/control
# but it seems that we don't currently, so this is the most expediant fix.
SAVE_LDLP=${LD_LIBRARY_PATH:-}
unset LD_LIBRARY_PATH
DPKG_SHLIB_DEPS=$(dpkg-shlibdeps -O "$BUILDDIR/chrome" 2> /dev/null | \
DPKG_SHLIB_DEPS=$(dpkg-shlibdeps -O "$BUILDDIR/chrome" | \
sed 's/^shlibs:Depends=//')
if [ -n "$SAVE_LDLP" ]; then
LD_LIBRARY_PATH=$SAVE_LDLP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment