diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-24 17:05:26 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-24 17:05:26 +0200 |
| commit | dcd063895865d9699ced0f063fe76be901a50184 (patch) | |
| tree | d4cfaf2323701d7dd5830fbf6a773df652736193 | |
| parent | d22382df6823d8b15cc9db7557de59ea38c8f093 (diff) | |
| download | sbo-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>
| -rwxr-xr-x | sbo-batch-test | 5 |
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." } |
