aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-runhooks
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-08-17 14:26:08 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-08-17 14:26:08 +0000
commitbcaeb729122fd027a33941af1d51424f532db8ee (patch)
tree1fe9be83c8227fb4e22bc3f84a4290eaf2cd11ca /pbuilder-runhooks
parente1379f2ef18b521182115ea3a82894bae7bf36cf (diff)
downloadpbuilder-bcaeb729122fd027a33941af1d51424f532db8ee.tar
pbuilder-bcaeb729122fd027a33941af1d51424f532db8ee.tar.gz
makes BUILDDIR available to hooks, so they can know where the source and the built packages are
Diffstat (limited to 'pbuilder-runhooks')
-rw-r--r--pbuilder-runhooks1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbuilder-runhooks b/pbuilder-runhooks
index 9ca6e76..3b34e18 100644
--- a/pbuilder-runhooks
+++ b/pbuilder-runhooks
@@ -90,6 +90,7 @@ function executehooks () {
*)
if [ -x "$fn" ]; then
log "I: user script $fn starting"
+ BUILDDIR="$BUILDDIR" \
$CHROOTEXEC "/$hooks/"$(basename "$fn")
log "I: user script $fn finished"
else