summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstages/make-exherbo-stages26
1 files changed, 15 insertions, 11 deletions
diff --git a/stages/make-exherbo-stages b/stages/make-exherbo-stages
index 0e1fbc3..c62f9ad 100755
--- a/stages/make-exherbo-stages
+++ b/stages/make-exherbo-stages
@@ -387,17 +387,21 @@ if cave has-version 'sys-devel/gcc:5.1'; then
done | xargs -L1 cave perform uninstall
fi
-edo ${NICE} cave resolve --fetch -Ci gcc-split -x1
-edo ${NICE} cave resolve --fetch -Ci system -cx
-edo ${NICE} cave resolve --fetch -Ci world -cx
-edo ${NICE} cave resolve --fetch -Ci stages -cx1
-edo ${NICE} cave resolve --fetch -Ci installed-slots -cx
-
-edo ${NICE} cave resolve -Ci gcc-split -x1
-edo ${NICE} cave resolve -Ci system -cx
-edo ${NICE} cave resolve -Ci world -cx
-edo ${NICE} cave resolve -Ci stages -cx1
-edo ${NICE} cave resolve -Ci installed-slots -cx
+EXTRA_OPTIONS=(
+ --purge '*/*'
+)
+
+edo ${NICE} cave resolve --fetch -Ci "${EXTRA_OPTIONS[@]}" gcc-split -x1
+edo ${NICE} cave resolve --fetch -Ci "${EXTRA_OPTIONS[@]}" system -cx
+edo ${NICE} cave resolve --fetch -Ci "${EXTRA_OPTIONS[@]}" world -cx
+edo ${NICE} cave resolve --fetch -Ci "${EXTRA_OPTIONS[@]}" stages -cx1
+edo ${NICE} cave resolve --fetch -Ci "${EXTRA_OPTIONS[@]}" installed-slots -cx
+
+edo ${NICE} cave resolve -Ci "${EXTRA_OPTIONS[@]}" gcc-split -x1
+edo ${NICE} cave resolve -Ci "${EXTRA_OPTIONS[@]}" system -cx
+edo ${NICE} cave resolve -Ci "${EXTRA_OPTIONS[@]}" world -cx
+edo ${NICE} cave resolve -Ci "${EXTRA_OPTIONS[@]}" stages -cx1
+edo ${NICE} cave resolve -Ci "${EXTRA_OPTIONS[@]}" installed-slots -cx
if [[ -d ${CHROOT_DIR} ]]; then
echo "Existing chroot detected at ${CHROOT_DIR}. Wiping it."