--- trunk/mage/usr/lib/mage/mage4.functions.sh 2012/01/14 00:00:53 1658 +++ trunk/mage/usr/lib/mage/mage4.functions.sh 2012/02/06 09:45:23 1675 @@ -1565,8 +1565,12 @@ for mirr in ${MIRRORS} do - # path without distribution - mymirr="${mirr%/*}" + # path without distribution + # (only for stable|testing|unstable and not DISTROTAG) + case ${mirr##*/} in + stable|testing|unstable) mymirr="${mirr%/*}";; + *) mymirr="${mirr}";; + esac echo -ne "${COLBLUE} --- ${COLDEFAULT}" echo "fetching latest md5 from ${mymirr} ..."