Commit 1a28d389 authored by Natanael Copa's avatar Natanael Copa

abuild: abort build if md5 check fails

parent a457f724
...@@ -93,7 +93,7 @@ md5check() { ...@@ -93,7 +93,7 @@ md5check() {
if [ "$(echo $source | wc -l)" -ne "$(echo $md5sums | wc -l)" ]; then if [ "$(echo $source | wc -l)" -ne "$(echo $md5sums | wc -l)" ]; then
die "Number of md5sums does not correspond to number of sources" die "Number of md5sums does not correspond to number of sources"
fi fi
fetch fetch || return 1
msg "Checking md5sums..." msg "Checking md5sums..."
cd "$srcdir" && echo "$md5sums" | md5sum -c cd "$srcdir" && echo "$md5sums" | md5sum -c
} }
...@@ -139,7 +139,7 @@ fetch() { ...@@ -139,7 +139,7 @@ fetch() {
# unpack the sources # unpack the sources
unpack() { unpack() {
local u local u
md5check md5check || return 1
mkdir -p "$srcdir" mkdir -p "$srcdir"
for u in $source; do for u in $source; do
local s="$SRCDEST/${u##*/}" # $(basename $s) local s="$SRCDEST/${u##*/}" # $(basename $s)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment