unos-repository

APK repository for unos
git clone git://git.finwo.net/misc/unos-repository
Log | Files | Refs | README

commit 9b64e7c363fc963e8631fb16de33b88e9b96108d
parent 1ae5c82e191ecee7a1d8369cc87d2e9aee0e1304
Author: Robin Bron <robin.bron@yourhosting.nl>
Date:   Thu,  1 Oct 2026 10:37:53 +0200

Clear the source tree before extracting so WRKSRC cannot go stale

Diffstat:
Mmk/build.sh | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/mk/build.sh b/mk/build.sh @@ -217,6 +217,9 @@ if [ -n "${distfiles}" ] || [ -n "${srcfiles}" ]; then set -- ${distfiles} _tarball=${SRCDEST}/$(basename "$1") fi + # Wipe first: a leftover tree from another tarball prefix makes the + # single-top-level-dir test below fail and WRKSRC silently wrong. + rm -rf "${WORK}/src" mkdir -p "${WORK}/src" tar -xf "${_tarball}" -C "${WORK}/src" # WRKSRC: single top-level dir if the tarball has exactly one, else src/