abuild: abort build if md5 check fails

This commit is contained in:
Natanael Copa 2009-01-17 09:58:50 +00:00
parent a457f7241c
commit 1a28d3898b
1 changed files with 2 additions and 2 deletions

4
abuild
View File

@ -93,7 +93,7 @@ md5check() {
if [ "$(echo $source | wc -l)" -ne "$(echo $md5sums | wc -l)" ]; then
die "Number of md5sums does not correspond to number of sources"
fi
fetch
fetch || return 1
msg "Checking md5sums..."
cd "$srcdir" && echo "$md5sums" | md5sum -c
}
@ -139,7 +139,7 @@ fetch() {
# unpack the sources
unpack() {
local u
md5check
md5check || return 1
mkdir -p "$srcdir"
for u in $source; do
local s="$SRCDEST/${u##*/}" # $(basename $s)