]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- geturis are too long, truncate to first word
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Jan 2006 23:01:42 +0000 (23:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.373

builder.sh

index ad79b597accaefc3cafdc801e04a55bbd6843236..42e391fef0038e4a58fe1f02e0b9c4b54838ab5a 100644 (file)
@@ -719,32 +719,32 @@ get_files()
                                        url_attic=$(distfiles_attic_url "$i")
                                        FROM_DISTFILES=1
                                        if [ "`echo $url | grep -E '^(\.|/)'`" ]; then
-                                               update_shell_title "${GETLOCAL}: $url"
+                                               update_shell_title "${GETLOCAL%% *}: $url"
                                                ${GETLOCAL} $url $target
                                        else
                                                if [ -z "$NOMIRRORS" ]; then
                                                        url="`find_mirror "$url"`"
                                                fi
-                                               update_shell_title "${GETURI}: $url"
+                                               update_shell_title "${GETURI%% *}: $url"
                                                ${GETURI} ${OUTFILEOPT} "$target" "$url" || \
                                                if [ "`echo $url | grep -E 'ftp://'`" ]; then
-                                                       update_shell_title "${GETURI2}: $url"
+                                                       update_shell_title "${GETURI2%% *}: $url"
                                                        ${GETURI2} ${OUTFILEOPT} "$target" "$url"
                                                fi
                                        fi
                                        if ! test -s "$target"; then
                                                rm -f "$target"
                                                if [ `echo $url_attic | grep -E '^(\.|/)'` ]; then
-                                                       update_shell_title "${GETLOCAL}: $url_attic"
+                                                       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"
+                                                       update_shell_title "${GETURI%% *}: $url_attic"
                                                        ${GETURI} ${OUTFILEOPT} "$target" "$url_attic" || \
                                                        if [ "`echo $url_attic | grep -E 'ftp://'`" ]; then
-                                                                update_shell_title "${GETURI2}: $url_attic"
+                                                                update_shell_title "${GETURI2%% *}: $url_attic"
                                                                ${GETURI2} ${OUTFILEOPT} "$target" "$url_attic"
                                                        fi
                                                fi
@@ -766,10 +766,10 @@ get_files()
                                        else
                                                im="$i"
                                        fi
-                                       update_shell_title "${GETURI}: $im"
+                                       update_shell_title "${GETURI%% *}: $im"
                                        ${GETURI} "$im" || \
                                        if [ "`echo $im | grep -E 'ftp://'`" ]; then
-                                                update_shell_title "${GETURI2}: $im"
+                                                update_shell_title "${GETURI2%% *}: $im"
                                                ${GETURI2} "$im"
                                        fi
                                fi
@@ -801,18 +801,18 @@ get_files()
                                echo "MD5 sum mismatch. Trying full fetch."
                                FROM_DISTFILES=2
                                rm -f $target
-                               update_shell_title "${GETURI}: $url"
+                               update_shell_title "${GETURI%% *}: $url"
                                ${GETURI} ${OUTFILEOPT} "$target" "$url" || \
                                if [ "`echo $url | grep -E 'ftp://'`" ]; then
-                                        update_shell_title "${GETURI2}: $url"
+                                        update_shell_title "${GETURI2%% *}: $url"
                                        ${GETURI2} ${OUTFILEOPT} "$target" "$url"
                                fi
                                if ! test -s "$target"; then
                                        rm -f "$target"
-                                       update_shell_title "${GETURI}: $url_attic"
+                                       update_shell_title "${GETURI%% *}: $url_attic"
                                        ${GETURI} ${OUTFILEOPT} "$target" "$url_attic" || \
                                        if [ "`echo $url_attic | grep -E 'ftp://'`" ]; then
-                                                update_shell_title "${GETURI2}: $url_attic"
+                                                update_shell_title "${GETURI2%% *}: $url_attic"
                                                ${GETURI2} ${OUTFILEOPT} "$target" "$url_attic"
                                        fi
                                fi
This page took 0.034929 seconds and 4 git commands to generate.