about summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-10-16 08:14:01 +0200
committerJuan RP <xtraeme@voidlinux.eu>2015-10-16 08:14:01 +0200
commitd0f0910b6738b175d2ecc6fdbf6515927cd9d81e (patch)
tree06b0c835ddfd2904f93152fe988de9c439a3082f /mklive.sh.in
parent8261f90a2aaee2d16d0d719d8656a82e7239beb0 (diff)
downloadhrmpf-d0f0910b6738b175d2ecc6fdbf6515927cd9d81e.tar.gz
hrmpf-d0f0910b6738b175d2ecc6fdbf6515927cd9d81e.tar.xz
hrmpf-d0f0910b6738b175d2ecc6fdbf6515927cd9d81e.zip
mklive: make -r append repo to the head rather than replacing.
This allows you to use local repos with higher priority than the
official remote ones.
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 5070c65..913a0c3 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -265,7 +265,7 @@ generate_iso_image() {
         -output "$CURDIR/$OUTPUT_FILE" "$IMAGEDIR" || die "Failed to generate ISO image"
 }
 
-XBPS_REPOSITORY=
+XBPS_REPOSITORY="--repository=http://repo.voidlinux.eu/current --repository=http://muslrepo.voidlinux.eu/current"
 #
 # main()
 #
@@ -273,7 +273,7 @@ while getopts "a:b:r:c:C:T:Kk:l:i:s:S:o:p:h" opt; do
     case $opt in
         a) BASE_ARCH="$OPTARG";;
         b) BASE_SYSTEM_PKG="$OPTARG";;
-        r) XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=$OPTARG ";;
+        r) XBPS_REPOSITORY="--repository=$OPTARG $XBPS_REPOSITORY";;
         c) XBPS_CACHEDIR="--cachedir=$OPTARG";;
         K) readonly KEEP_BUILDDIR=1;;
         k) KEYMAP="$OPTARG";;
@@ -328,7 +328,6 @@ ISOLINUX_DIR="$BOOT_DIR/isolinux"
 GRUB_DIR="$BOOT_DIR/grub"
 ISOLINUX_CFG="$ISOLINUX_DIR/isolinux.cfg"
 
-: ${XBPS_REPOSITORY:=--repository=http://repo.voidlinux.eu/current --repository=http://muslrepo.voidlinux.eu/current}
 : ${SYSLINUX_DATADIR:=$VOIDHOSTDIR/usr/share/syslinux}
 : ${GRUB_DATADIR:=$VOIDHOSTDIR/usr/share/grub}
 : ${SPLASH_IMAGE:=data/splash.png}