In dyn_package(), show a more informative die message if an error occurs when
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:17:58 +0000 (05:17 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:17:58 +0000 (05:17 -0000)
creating the tarball. (trunk r12618)

svn path=/main/branches/2.1.6/; revision=12893

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