[X2Go-Commits] [buildscripts] 06/12: bin/sbuild-deb-package: add new SKIP_ARCH_ALL boolean option to forcefully skip building of "Architecture: all" packages.

git-admin at x2go.org git-admin at x2go.org
Mon Mar 11 14:46:38 CET 2024


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit a6dbbbe5b0cae6c9f6d982da6641b2034c88ae92
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Mar 7 12:41:50 2024 +0100

    bin/sbuild-deb-package: add new SKIP_ARCH_ALL boolean option to forcefully skip building of "Architecture: all" packages.
---
 bin/sbuild-deb-package | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index b9730c0..b2a2db7 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -54,6 +54,7 @@ test -f "${HOME}/.buildscripts/${PREFIX}.conf" && . "${HOME}/.buildscripts/${PRE
 
 : ${NO_DELAY:="no"}
 : ${FORCE_BUILD:="no"}
+: "${SKIP_ARCH_ALL:='no'}"
 : ${DEB_BUILD_FOR:="debian:${DEBIAN_DISTROS} ubuntu:${UBUNTU_DISTROS} raspbian:${RASPBIAN_DISTROS}"}
 : ${FLAVOR:="native"}
 : ${PLATFORM:="x86"}
@@ -419,7 +420,7 @@ build_packages() {
 					dch --distribution "${codename}" --force-distribution -l "~git${DATE}.${GITREV}+${numerical_version}.${COMPONENT}." "Development-Snapshot!!! Auto-built ${pretty_dist} ${l_CODENAME} (${numerical_version}) package for ${REPOS_SERVER} repository (Git commit: ${GIT_OBJECT_ID})."
 				fi
 
-				typeset -i skip_arch_all="0"
+				typeset -i skip_arch_all="${SKIP_ARCH_ALL}"
 				typeset -a arches
 				arches=()
 				case "${PLATFORM}" in
@@ -624,6 +625,7 @@ set_vars "${@}" && {
 	if [ "x$(basename "${0}")" = "x${PREFIX}-sbuild-deb-package" ] || [ "x$(basename "${0}")" = "x${PREFIX}-sbuild+upload-deb-package" ]; then
 		FORCE_BUILD="$(make_boolean "${FORCE_BUILD}")"
 		NO_DELAY="$(make_boolean "${NO_DELAY}")"
+		SKIP_ARCH_ALL="$(make_boolean "${SKIP_ARCH_ALL}")"
 
 		cd "${PROJECT_DIR}" && {
 			pkgneedsbuild "${CHECKOUT}" || [ "${FORCE_BUILD}" -eq "1" ]

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list