From: Matthias Kruk Date: Wed, 11 Aug 2021 06:58:34 +0000 (+0900) Subject: buildbot: Avoid dpkg-buildpackage placing results in ".." X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=8e08a5fa35468753ffc620f7753e2a9e6dde100b;p=foundry buildbot: Avoid dpkg-buildpackage placing results in ".." There is no commandline option to tell dpkg-buildpackage to place the build artifacts in a directory other than "..". Since buildbot clones the sources directly into a temporary directory, this causes the build artifacts to be written to a path outside the temporary directory. This commit modifies buildbot to clone the sources into a subdirectory of the temporary directory so that no build artifacts will be placed outside of the temporary build directory. --- diff --git a/buildbot.sh b/buildbot.sh index 303ddd9..7f135de 100755 --- a/buildbot.sh +++ b/buildbot.sh @@ -26,7 +26,7 @@ build() { local err err=0 - if ! output=$(git clone "$repository" -b "$branch" "$builddir" 2>&1); then + if ! output=$(git clone "$repository" -b "$branch" "$builddir/sources" 2>&1); then err=1 fi @@ -39,7 +39,7 @@ build() { return 1 fi - if ! output=$(cd "$builddir" && make deb 2>&1); then + if ! output=$(cd "$builddir/sources" && make deb 2>&1); then err=1 fi