[pbuilder] 01/01: Revert "checkparams: make sure ARCHITECTURE is always defined"
Mattia Rizzolo
mattia at debian.org
Sun Jan 15 16:27:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository pbuilder.
commit f1d0eac5a06bacd5ee0b46c238659fe7d47efa61
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Jan 15 17:26:53 2017 +0100
Revert "checkparams: make sure ARCHITECTURE is always defined"
at this point CHROOTEXEC can't be called as the chroot is not yet
extracted.
This reverts commit ac67a42b40c2b3f488dcf7e01305d316dcbfde43.
---
pbuilder-checkparams | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index ad52913..fd4c4a4 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -350,6 +350,9 @@ log.d "cmdline: ${PBUILDER_OPERATION} ${CMDLINE}"
BUILDPLACE=${BUILDPLACE?"Build root directory is not defined"}
+# if HOST_ARCH is not defined at this point, we are doing a native build
+HOST_ARCH=${HOST_ARCH:-${ARCHITECTURE}}
+
# the default is to add a PID in the buildplace specified in the config file.
BASEBUILDPLACE="$BUILDPLACE"
if [ "${INTERNAL_BUILD_UML}" != "yes" -a "${PRESERVE_BUILDPLACE}" != "yes" ]; then
@@ -382,12 +385,6 @@ if [ -z "${CHROOTEXEC}" ]; then
fi
fi
-# if ARCHITECTURE is still not defined, get the data out of the chroot
-ARCHITECTURE="${ARCHITECTURE:-$($CHROOTEXEC dpkg-architecture -qDEB_BUILD_ARCH)}"
-
-# if HOST_ARCH is not defined at this point, we are doing a native build
-HOST_ARCH=${HOST_ARCH:-${ARCHITECTURE}}
-
# handle 'experimental' specially. -- required for raw pbuilder (create/update) only.
case "$PBUILDER_OPERATION" in
update|create)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git
More information about the Pbuilder-maint
mailing list