Browse Source

pbuilder-hookdir/C10shell: support pbuilder >=0.216

pbuilder >=0.216 uses /build instead of /tmp/buildd
for building, accordingly check for presence of /build
or fall back to /tmp/buildd otherwise.
keep-around/8fe677820fae2a195e2dccace10b19edde8dc200
Michael Prokop 7 years ago
parent
commit
0d872a2840
  1. 10
      pbuilder-hookdir/C10shell

10
pbuilder-hookdir/C10shell

@ -33,7 +33,13 @@ EOF
exit 1
fi
cd /tmp/buildd/*/debian/..
if [ -d /build ] ; then
BUILD_DIR="/build" # pbuilder >=0.216
else
BUILD_DIR="/tmp/buildd" # pbuilder <0.216
fi
cd "${BUILD_DIR}"/*/debian/..
ID="$(basename $PWD)"
touch /testfile.$$
@ -58,7 +64,7 @@ cat <<EOF
│ chroot /var/cache/pbuilder/build/debug.$ID
│ su - pbuilder
│ bash
│ cd /tmp/buildd/*/debian/..
│ cd ${BUILD_DIR}/*/debian/..
│ env PATH="/usr/sbin:/usr/bin:/sbin:/bin" dpkg-buildpackage -us -uc -nc -rfakeroot
┌──────────────────────────────────────────────────────────────────────────────┐

Loading…
Cancel
Save