aboutsummaryrefslogtreecommitdiffstats
path: root/sbo-batch-test
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-24 17:05:26 +0200
committerDanilo M. <danix@danix.xyz>2026-06-24 17:05:26 +0200
commitdcd063895865d9699ced0f063fe76be901a50184 (patch)
treed4cfaf2323701d7dd5830fbf6a773df652736193 /sbo-batch-test
parentd22382df6823d8b15cc9db7557de59ea38c8f093 (diff)
downloadsbo-batch-tester-dcd063895865d9699ced0f063fe76be901a50184.tar.gz
sbo-batch-tester-dcd063895865d9699ced0f063fe76be901a50184.zip
Wipe package cache when base is patched
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'sbo-batch-test')
-rwxr-xr-xsbo-batch-test5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbo-batch-test b/sbo-batch-test
index ac3297c..75b8305 100755
--- a/sbo-batch-test
+++ b/sbo-batch-test
@@ -303,6 +303,11 @@ update_base() {
fi
done
echo "$head_now" > "$marker"
+ # Base changed: cached deps were built against the old base, drop them all.
+ if [[ -n "$PKG_CACHE" && -d "$PKG_CACHE" ]]; then
+ rm -rf "${PKG_CACHE:?}"/*
+ echo "Package cache cleared (base changed)."
+ fi
echo "Base patched."
}