aboutsummaryrefslogtreecommitdiffstats
path: root/functions.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2021-02-03 17:07:21 +0100
committerJybz <j.biernacki@free.fr>2021-02-03 17:07:21 +0100
commitc16e81d06ad1ac88d384dd8677d0d8fa2320c58f (patch)
treee419789c987164a64b8bcc745311ae91eafe0101 /functions.sh
parent4e47dac7f9f4f9f8a1ef9495fb0a2b863fd76a98 (diff)
downloadmageia4arm-c16e81d06ad1ac88d384dd8677d0d8fa2320c58f.tar
mageia4arm-c16e81d06ad1ac88d384dd8677d0d8fa2320c58f.tar.gz
mageia4arm-c16e81d06ad1ac88d384dd8677d0d8fa2320c58f.tar.bz2
mageia4arm-c16e81d06ad1ac88d384dd8677d0d8fa2320c58f.tar.xz
mageia4arm-c16e81d06ad1ac88d384dd8677d0d8fa2320c58f.zip
Modifications for selecting mirror, fixing ARCH variable
Diffstat (limited to 'functions.sh')
-rwxr-xr-xfunctions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.sh b/functions.sh
index 655383d..76fd278 100755
--- a/functions.sh
+++ b/functions.sh
@@ -192,18 +192,18 @@ function enableextrarepos() {
# adding Mageia urpmi repositories
function addurpmimedia() {
- title "Creating media ${MIRROR}"
+ title "Creating media from mirror: ${MIRROR}"
print_info "Removing old media"
/sbin/urpmi.removemedia --urpmi-root "${BUILD_PATH}" -a
print_info "Adding media"
if [ ! -z "${MIRROR}" ] ; then
- echo ${MIRROR} | grep ${ARCH} 2>&1 1>/dev/null
+ echo ${MIRROR} | grep ${ARM_VERSION} 2>&1 1>/dev/null
if [ 0 -eq ${?} ]; then
/sbin/urpmi.addmedia --urpmi-root "${BUILD_PATH}" --ignorearch --distrib "${MIRROR}"
else
- /sbin/urpmi.addmedia --urpmi-root "${BUILD_PATH}" --ignorearch --distrib "${MIRROR}/${ARCH}"
+ /sbin/urpmi.addmedia --urpmi-root "${BUILD_PATH}" --ignorearch --distrib "${MIRROR}/${ARM_VERSION}"
fi
else
print_info "MIRROR variable not set, using mirrorlist."