summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-01-05 16:44:32 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2020-02-16 12:34:58 +0100
commitd0828c06557773f252b645618500699a941bd091 (patch)
tree1a199a6f6b726c477b8166630550a19eecf1053c
parentbad781082d633c59051ec2deacf1005661c66835 (diff)
downloadabuild-d0828c06557773f252b645618500699a941bd091.tar.bz2
abuild-d0828c06557773f252b645618500699a941bd091.tar.xz
abuild: include $pkgname in temporary rootbld directory
This makes it easier to figure out to which build the directory belongs to. Occasionally, I have many failed abuild rootblds in my /var/tmp and including the $pkgname in the directory would help me associating the directories with failed builds I recently executed.
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 008de98..97fe304 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2257,7 +2257,7 @@ rootbld() {
mkusers
- BUILD_ROOT=$(mktemp -d /var/tmp/abuild.XXXXXXXXXX)
+ BUILD_ROOT=$(mktemp -d "/var/tmp/abuild-$pkgname.XXXXXXXXXX")
mkdir -p "$BUILD_ROOT/proc" "$BUILD_ROOT/etc/apk/keys" \
"$BUILD_ROOT/$HOME/.abuild" "$BUILD_ROOT/$aportsgit" \