From d0828c06557773f252b645618500699a941bd091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 5 Jan 2020 16:44:32 +0100 Subject: [PATCH] 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. --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" \