--- trunk/mage/usr/lib/mage/mage4.functions.sh 2015/02/14 11:48:47 2866 +++ trunk/mage/usr/lib/mage/mage4.functions.sh 2015/03/19 15:28:54 2867 @@ -1383,7 +1383,7 @@ # check known uri schemes case ${uri} in - http://*|https://*|ftp://*|ftps://*) mirrors="" ;; + http://*|https://*|ftp://*|ftps://*|file://*) mirrors="" ;; mirror://*) mirrors="${MIRRORS}"; scheme="mirror://"; addon="/sources" ;; package://*) mirrors="${MIRRORS}"; scheme="package://"; addon="/${PACKAGES_SERVER_PATH}" ;; gnu://*) mirrors="${GNU_MIRRORS}"; scheme="gnu://" ;; @@ -1450,8 +1450,17 @@ # get the name of the output file outputfile="${mirror##*/}" - wget ${wget_opts} --output-document="${outputdir}/${outputfile}" "${mirror}" - retval="$?" + case ${mirror} in + file://*) + cp -v "${mirror//file:\/\/}" "${outputdir}/${outputfile}" + retval="$?" + ;; + *) + wget ${wget_opts} --output-document="${outputdir}/${outputfile}" "${mirror}" + retval="$?" + ;; + esac + if [[ ${retval} = 0 ]] then break