scripts/makepkg.sh.in: Fix 2 bugs

- Downloaded files weren't being copied to $srcdir
	- Counter wasn't being incremented for checksum checks

Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
This commit is contained in:
Andrew Fyfe 2007-08-04 01:17:54 +01:00 committed by Dan McGee
parent f2c7187e43
commit 47ee89ada9
1 changed files with 3 additions and 0 deletions

View File

@ -472,6 +472,7 @@ download_sources() {
plain "$(gettext "Aborting...")"
exit 1
fi
cp -s --remove-destination "$SRCDEST/$file" "$srcdir/"
done
popd &>/dev/null
@ -574,6 +575,8 @@ check_checksums() {
echo "$(gettext "FAILED")" >&2
errors=1
fi
idx=$((idx + 1))
done
if [ $errors -gt 0 ]; then