aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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."
}