# HG changeset patch # User Rob Landley # Date 1308333617 18000 # Node ID 42ec661e3916e84f3fb842cc5049574af86722bb # Parent ac60cab45463acc2e93998670cb4c13e08ffd549 Fix BINARY_PACKAGE_TARBALLS generation: some packages produce no output (zlib used to build dropbear for example), and thus check for an empty list before trying to make a tarball. diff -r ac60cab45463 -r 42ec661e3916 sources/functions.sh --- a/sources/functions.sh Fri Jun 17 12:42:12 2011 -0500 +++ b/sources/functions.sh Fri Jun 17 13:00:17 2011 -0500 @@ -137,10 +137,11 @@ if [ ! -z "$BINARY_PACKAGE_TARBALLS" ] then TARNAME="$PACKAGE-$STAGE_NAME-${ARCH_NAME}".tar.bz2 - echo -n Creating "$TARNAME" - { recent_binary_files | xargs -0 tar -cjvf \ - "$BUILD/${TARNAME}" -C "$STAGE_DIR" || dienow - } | dotprogress + [ ! -z "$(recent_binary_files)" ] && + echo -n Creating "$TARNAME" && + { recent_binary_files | xargs -0 tar -cjvf \ + "$BUILD/${TARNAME}" -C "$STAGE_DIR" || dienow + } | dotprogress fi if [ ! -z "$NO_CLEANUP" ]