[pacman-dev] [PATCH 2/3] makepkg: Download sources and check checksums for any source package.

Loui Chang louipc.ist at gmail.com
Fri Jun 19 14:33:09 EDT 2009


It wouldn't be very nice to ship a PKGBUILD with the wrong checksums.

Signed-off-by: Loui Chang <louipc.ist at gmail.com>
---
 scripts/makepkg.sh.in |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index d396480..ef36e8f 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1016,15 +1016,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}
-- 
1.6.3.2



More information about the pacman-dev mailing list