summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-01-31 10:00:05 +0100
committerJuan RP <xtraeme@gmail.com>2015-01-31 10:00:05 +0100
commit690ffec05cb2889f33b773db7a4268769360a24c (patch)
tree246b66a633105a425c9adab1e927ee73974a26a7 /mklive.sh.in
parentc2fdc9e505bd64050995a5bd6c84db021bda8b3f (diff)
downloadhrmpf-690ffec05cb2889f33b773db7a4268769360a24c.tar.gz
hrmpf-690ffec05cb2889f33b773db7a4268769360a24c.tar.xz
hrmpf-690ffec05cb2889f33b773db7a4268769360a24c.zip
mklive: unbreak setting multiple repos via -r (close #17)
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 2a9d70a..dcd1e75 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -3,7 +3,7 @@
 # vim: set ts=4 sw=4 et:
 #
 #-
-# Copyright (c) 2009-2014 Juan Romero Pardines.
+# Copyright (c) 2009-2015 Juan Romero Pardines.
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -246,6 +246,7 @@ generate_iso_image() {
         -output "$CURDIR/$OUTPUT_FILE" "$IMAGEDIR" || die "Failed to generate ISO image"
 }
 
+XBPS_REPOSITORY=
 #
 # main()
 #
@@ -253,7 +254,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="--repository=$OPTARG";;
+        r) XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=$OPTARG ";;
         c) XBPS_CACHEDIR="--cachedir=$OPTARG";;
         K) readonly KEEP_BUILDDIR=1;;
         k) KEYMAP="$OPTARG";;