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:
parent
b3a5535360
commit
02acf65ef3
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user