summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 05:17:58 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 05:17:58 +0000
commitcdf8415c87bd8fcb219fc40e67912e2d7f7ddeb1 (patch)
tree5f4bbbefd8a1bd33ec07fb8e7b06b7db313b440e /bin/misc-functions.sh
parent917ad1ebbcc9f327a519a774c87be1ca6e41b8ea (diff)
downloadportage-cdf8415c87bd8fcb219fc40e67912e2d7f7ddeb1.tar.gz
portage-cdf8415c87bd8fcb219fc40e67912e2d7f7ddeb1.tar.bz2
portage-cdf8415c87bd8fcb219fc40e67912e2d7f7ddeb1.zip
In dyn_package(), show a more informative die message if an error occurs when
creating the tarball. (trunk r12618) svn path=/main/branches/2.1.6/; revision=12893
Diffstat (limited to 'bin/misc-functions.sh')
-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