makepkg: allow skipping integrity checks when making source package

Extends the use of the --skipinteg option to creating a source
package. Fixes FS#15984.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2009-10-11 21:16:09 +10:00 committed by Dan McGee
parent 0e7ba6bddd
commit c1fc00508e
1 changed files with 9 additions and 3 deletions

View File

@ -1077,9 +1077,15 @@ create_srcpackage() {
mkdir -p "$srcdir"
chmod a-s "$srcdir"
cd "$srcdir"
download_sources
# We can only check checksums if we have all files.
check_checksums
if (( ! SKIPINTEG || SOURCEONLY == 2 )); then
download_sources
fi
if (( ! SKIPINTEG )); then
# We can only check checksums if we have all files.
check_checksums
else
warning "$(gettext "Skipping integrity checks.")"
fi
cd "$startdir"
msg "$(gettext "Creating source package...")"