makepkg: Download sources and check checksums for any source package.

It wouldn't be very nice to ship a PKGBUILD with the wrong checksums.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Loui Chang 2009-06-19 14:33:09 -04:00 committed by Allan McRae
parent b3a5535360
commit 02acf65ef3
1 changed files with 9 additions and 9 deletions

View File

@ -1012,15 +1012,15 @@ create_package() {
create_srcpackage() {
cd "$startdir"
if [ "$SOURCEONLY" -eq 2 ]; then
# get back to our src directory so we can begin with sources
mkdir -p "$srcdir"
cd "$srcdir"
download_sources
# we can only check checksums if we have all files
check_checksums
cd "$startdir"
fi
# Get back to our src directory so we can begin with sources.
mkdir -p "$srcdir"
cd "$srcdir"
download_sources
# We can only check checksums if we have all files.
check_checksums
cd "$startdir"
msg "$(gettext "Creating source package...")"
local srclinks="$(mktemp -d "$startdir"/srclinks.XXXXXXXXX)"
mkdir "${srclinks}"/${pkgbase}