release.sh: put vdir in xmtmp, not XBMK_CACHE

XBMK_CACHE is meant for permanent cached files, not
temporarily files.

the temporary release files are copied upon successful
return, to their rightful place under release/

this new change also reduces the chance of race
conditions, if multiple xbmk instances are used; while
not yet supported as a use-case, this is a goal for a
future design change.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-09-07 13:35:17 +01:00
parent 5096e0040f
commit 1c02f2a770
+3 -1
View File
@@ -21,7 +21,9 @@ release()
[ -e "$reldest" ] && \
err "already exists: \"$reldest\""
vdir="$XBMK_CACHE/relpwd/${xbtmp##*/}/$version"
vdir="`mktemp -d || err "can't make vdir"`" || err
vdir="$vdir/$version"
rsrc="$vdir/${relname}_src"
remkdir "$vdir"