aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2016-03-17 13:24:13 +0100
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2016-03-17 13:29:25 +0100
commit30332e5ac62a5d0a613524955b3bb5d0a3ec7cc3 (patch)
treee9857166ece5ed856dfb293c93e1fe6b1a6c8e18
parent6659d8174c0d03f2f783b5244e32857857a2e736 (diff)
downloadpaludis-30332e5ac62a5d0a613524955b3bb5d0a3ec7cc3.tar.gz
paludis-30332e5ac62a5d0a613524955b3bb5d0a3ec7cc3.tar.xz
Fail if bzip2 fails.
-rwxr-xr-xpaludis/repositories/e/ebuild/write_vdb_entry.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/write_vdb_entry.bash b/paludis/repositories/e/ebuild/write_vdb_entry.bash
index 4cb4b7d..9b2e27d 100755
--- a/paludis/repositories/e/ebuild/write_vdb_entry.bash
+++ b/paludis/repositories/e/ebuild/write_vdb_entry.bash
@@ -157,7 +157,10 @@ main()
ebuild_section "Generating saved ebuild and environment..."
[[ -f "${EBUILD}" ]] && cp "${EBUILD}" ${vdbdir}/
- bzip2 < ${envfile} > ${vdbdir}/environment.bz2
+ if ! bzip2 < ${envfile} > ${vdbdir}/environment.bz2 ; then
+ echo "!!! vdb write environment.bz2 failed"
+ exit 1
+ fi
ebuild_section "Finished writing VDB entry"