summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-15 18:54:50 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-15 18:54:50 +0000
commit084c9e85f76ed5c5ef1178fafb0df180437e71b1 (patch)
tree2775412b110daa3c04a7e87d8f3a731a87e59703
parent8ea60f7e3a5043aec5497bbaea312fc1ac30d8f9 (diff)
downloadportage-084c9e85f76ed5c5ef1178fafb0df180437e71b1.tar.gz
portage-084c9e85f76ed5c5ef1178fafb0df180437e71b1.tar.bz2
portage-084c9e85f76ed5c5ef1178fafb0df180437e71b1.zip
In dyn_package(), show a more informative die message if an error occurs when
creating the tarball. svn path=/main/trunk/; revision=12618
-rwxr-xr-xbin/misc-functions.sh2
1 files changed, 1 insertions, 1 deletions
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