emerge-delta-webrsync: normalize fetch URI
authorZac Medico <zmedico@gentoo.org>
Sat, 18 Aug 2012 01:44:59 +0000 (18:44 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 18 Aug 2012 01:44:59 +0000 (18:44 -0700)
This will fix bug #124072.

misc/emerge-delta-webrsync

index 34c70940ebe61960188f2d83462750d00b127dd7..fffa815f6b1f057fcfaecd9cdeeb3d1df9086908 100755 (executable)
@@ -296,7 +296,7 @@ fetch_from_mirrors() {
        fi
        FILE="$2"
        for i in $MIRRORS ; do
-               URI="${i}/${1}"
+               URI="${i%/}/${1#/}"
                if (eval "$FETCHCOMMAND $wgetops") && [ -s "${FILE}" ]; then
                        return 0
                else