diff options
-rwxr-xr-x | functions.sh | 6 |
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." |