[misc] 01/01: prebuilder: make the hook cope with pbuilder < 0.216
Mattia Rizzolo
mattia at debian.org
Sun May 21 20:17:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository misc.
commit d355550fb6483b5a4a737ccd64e07399590aa786
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun May 21 22:17:31 2017 +0200
prebuilder: make the hook cope with pbuilder < 0.216
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
prebuilder/pbuilderhooks/B92_diffoscope | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/prebuilder/pbuilderhooks/B92_diffoscope b/prebuilder/pbuilderhooks/B92_diffoscope
index b345e0a..1128436 100755
--- a/prebuilder/pbuilderhooks/B92_diffoscope
+++ b/prebuilder/pbuilderhooks/B92_diffoscope
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# B92_diffoscope: run diffoscope if needed
#
# We run this hook from the chroot as we can install the version
@@ -16,6 +16,9 @@ print_reproducible() {
echo
}
+# cope with pbuilder < 0.216
+BUILDDIR=${BUILDDIR:-/tmp/buildd}
+
echo "I: BUILDDIR is $BUILDDIR"
[ -f $BUILDDIR/initial_build.tar ] || exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list