summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 2349cdcc..b730d4c6 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -655,7 +655,8 @@ umask 0002
EOF
# build path is not yet varied on testing
if [ "${SUITE}" != "testing" ]; then
- echo "BUILDDIR=/build/2nd" >> "$TMPCFG"
+ local src_dir_name="$(perl -mDpkg::Source::Package -e '$_ = Dpkg::Source::Package->new(filename => $ARGV[0])->get_basename; s/_/-/g; print' -- "${SRCPACKAGE}_${EVERSION}.dsc")"
+ echo "BUILDDIR=/build/$src_dir_name" >> "$TMPCFG"
else
echo "BUILDDIR=/build" >> "$TMPCFG"
fi