From c1fc00508e337f20eb94e95978e193d23cfeaf10 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 11 Oct 2009 21:16:09 +1000 Subject: 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 Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 30e365c0..17072454 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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...")" -- cgit v1.2.3-70-g09d2