[pbuilder] 01/01: modules: export DISTRIBUTION when calling the hooks
Mattia Rizzolo
mattia at debian.org
Thu Apr 28 07:09:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository pbuilder.
commit 8d7ef69450a4ed8b9a4f2602b6260192ace11d16
Author: Mattia Rizzolo <mattia at debian.org>
Date: Thu Apr 28 07:09:33 2016 +0000
modules: export DISTRIBUTION when calling the hooks
---
debian/changelog | 3 ++-
pbuilder-modules | 1 +
pbuilder.8 | 13 +++++++++----
3 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 43a40d9..c6c45c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,7 +38,8 @@ pbuilder (0.223+unreleased) UNRELEASED; urgency=medium
* checkparams:
+ use the newer PBUILDER_OPERATION instead of PBCURRENTCOMMANDLINEOPERATION.
* modules:
- + Stop overriding APT::Default-Release for experimental.
+ + stop overriding APT::Default-Release for experimental.
+ + export DISTRIBUTION when calling the hooks.
+ define DEB_BUILD_ARCH_OS globally.
This fixes the USENETWORK handling, where there are tests involving
DEB_BUILD_ARCH_OS but it was previously undefined.
diff --git a/pbuilder-modules b/pbuilder-modules
index c2265e3..c06cfea 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -768,6 +768,7 @@ function executehooks () {
if [ -x "$fn" ]; then
log.i "user script $fn starting"
BUILDDIR="$BUILDDIR" \
+ DISTRIBUTION="$DISTRIBUTION" \
$CHROOTEXEC "/$hooks/$(basename "$fn")"
log.i "user script $fn finished"
else
diff --git a/pbuilder.8 b/pbuilder.8
index 95aac52..885daaf 100644
--- a/pbuilder.8
+++ b/pbuilder.8
@@ -364,15 +364,20 @@ back the build results.
In your hook the following environment variables are available:
.RS 8
+.I PBUILDER_OPERATION
+a string indicating which of the pbuilder command has been called. Possible
+values are \fBbuild\fR, \fBclean\fR, \fBcreate\fR, \fBdebuild\fR,
+\fBdumpconfig\fR, \fBexecute\fR, \fBlogin\fR, \fBupdate\fR.
+.RE
+.RS 8
.I BUILDDIR
the place where the build happens, the sources are inside a directory named
.B <package>-<version>.
.RE
.RS 8
-.I PBUILDER_OPERATION
-a string indicating which of the pbuilder command has been called. Possible
-values are \fBbuild\fR, \fBclean\fR, \fBcreate\fR, \fBdebuild\fR,
-\fBdumpconfig\fR, \fBexecute\fR, \fBlogin\fR, \fBupdate\fR.
+.I DISTRIBUTION
+the name of the used distribution, as provided by the DISTRIBUTION config value,
+or the --distribution command line flag.
.RE
\" End of hookdir description
--
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