1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

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

View File

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