summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xadelie-build-cd2
1 files changed, 2 insertions, 0 deletions
diff --git a/adelie-build-cd b/adelie-build-cd
index b5870e2..acd6530 100755
--- a/adelie-build-cd
+++ b/adelie-build-cd
@@ -254,6 +254,7 @@ make_structure() {
if test -n "${DO_FULL+full}"; then
# This ensures we have documentation available on-disc, and to install.
apk --arch $ARCH \
+ ${CACHE:+--cache-dir "${CACHE}"} \
-X "$URL/system/$EXTRA_MIRROR" \
-X "$URL/user/$EXTRA_MIRROR" \
--root squashroot-$ARCH add docs
@@ -261,6 +262,7 @@ make_structure() {
mkdir -p $PACKAGES_DIR
# Fetch all APKs.
apk --arch $ARCH \
+ ${CACHE:+--cache-dir "${CACHE}"} \
-X "$URL/system/$EXTRA_MIRROR" \
-X "$URL/user/$EXTRA_MIRROR" \
--root squashroot-$ARCH fetch -o $PACKAGES_DIR $(apk --root squashroot-$ARCH info)