[pacman-dev] [PATCH] makepkg: allow skipping intergrity checks whem making source package

Allan McRae allan at archlinux.org
Sun Oct 11 08:21:15 EDT 2009


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

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 scripts/makepkg.sh.in |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 88487da..149326a 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1038,9 +1038,15 @@ create_srcpackage() {
 	# 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
+	if [ $SKIPINTEG -eq 0 -o "$SOURCEONLY" -eq 2 ]; then
+		download_sources
+	fi
+	if [ $SKIPINTEG -eq 0 ]; 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...")"
-- 
1.6.4.4



More information about the pacman-dev mailing list