From: Zac Medico Date: Sun, 15 Feb 2009 18:54:50 +0000 (-0000) Subject: In dyn_package(), show a more informative die message if an error occurs when X-Git-Tag: v2.2_rc24~187 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=084c9e85f76ed5c5ef1178fafb0df180437e71b1;p=portage.git In dyn_package(), show a more informative die message if an error occurs when creating the tarball. svn path=/main/trunk/; revision=12618 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index f7ce2270b..82f44fb7d 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -641,7 +641,7 @@ dyn_package() { mkdir -p "${PORTAGE_BINPKG_TMPFILE%/*}" || die "mkdir failed" tar $tar_options -cf - $PORTAGE_BINPKG_TAR_OPTS -C "${D}" . | \ bzip2 -f > "$PORTAGE_BINPKG_TMPFILE" - assert + assert "failed to pack binary package: '$PORTAGE_BINPKG_TMPFILE'" PYTHONPATH=${PORTAGE_PYM_PATH}${PYTHONPATH:+:}${PYTHONPATH} \ python -c "from portage import xpak; t=xpak.tbz2('${PORTAGE_BINPKG_TMPFILE}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')" if [ $? -ne 0 ]; then