In dyn_package(), show a more informative die message if an error occurs when
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Feb 2009 18:54:50 +0000 (18:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Feb 2009 18:54:50 +0000 (18:54 -0000)
creating the tarball.

svn path=/main/trunk/; revision=12618

bin/misc-functions.sh

index f7ce2270bc7483416290a8443362d6a82032bb21..82f44fb7d4189e2aaee96d9665a824be8601391c 100755 (executable)
@@ -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