]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
remove superfluous calls to find_mirror
authorKacper Kornet <draenog@pld-linux.org>
Mon, 20 Aug 2012 11:01:22 +0000 (12:01 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Mon, 20 Aug 2012 11:01:22 +0000 (12:01 +0100)
builder.sh

index dfb5cdd245b579bf5ff8207ffd790075aa7e3325..e61f014722c5ddb43324210f96ee6ee92e7cbd77 100755 (executable)
@@ -1235,10 +1235,6 @@ get_files() {
                                                update_shell_title "${GETLOCAL%% *}: $url"
                                                ${GETLOCAL} $url $target
                                        else
-                                               if [ -z "$NOMIRRORS" ]; then
-                                                       url=$(find_mirror "$url")
-                                               fi
-
                                                local uri=${url}
                                                # make shorter message for distfiles urls
                                                if [[ "$uri" = ${PROTOCOL}${DISTFILES_SERVER}* ]] || [[ "$uri" = ${PROTOCOL}${ATTICDISTFILES_SERVER}* ]]; then
@@ -1261,9 +1257,6 @@ get_files() {
                                                        update_shell_title "${GETLOCAL%% *}: $url_attic"
                                                        ${GETLOCAL} $url_attic $target
                                                else
-                                                       if [ -z "$NOMIRRORS" ]; then
-                                                               url_attic=$(find_mirror "$url_attic")
-                                                       fi
                                                        update_shell_title "${GETURI%% *}: $url_attic"
                                                        ${GETURI} ${OUTFILEOPT} "$target" "$url_attic" || \
                                                        if [ "`echo $url_attic | grep -E 'ftp://'`" ]; then
This page took 0.037028 seconds and 4 git commands to generate.