]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- shorter shell titles for distfiles fetches
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 31 Jan 2007 22:57:02 +0000 (22:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.474

builder.sh

index 57016c1d71878934017e08dda3f85db64a82736e..304d0608a83c8eaa6bf22982fabdeeedd27acc77 100644 (file)
@@ -929,9 +929,17 @@ get_files()
                                                ${GETLOCAL} $url $target
                                        else
                                                if [ -z "$NOMIRRORS" ]; then
-                                                       url="`find_mirror "$url"`"
+                                                       url=$(find_mirror "$url")
                                                fi
-                                               update_shell_title "${GETURI%% *}: $url"
+
+                                               local uri=${url}
+                                               # make shorter message for distfiles urls
+                                               if [[ "$uri" = ${PROTOCOL}${DISTFILES_SERVER}* ]] || [[ "$uri" = ${PROTOCOL}${ATTICDISTFILES_SERVER}* ]]; then
+                                                       uri=${uri#${PROTOCOL}${DISTFILES_SERVER}/distfiles/by-md5/?/?/*/}
+                                                       uri=${uri#${PROTOCOL}${ATTICDISTFILES_SERVER}/distfiles/by-md5/?/?/*/}
+                                                       uri="df: $uri"
+                                               fi
+                                               update_shell_title "${GETURI%% *}: $uri"
                                                ${GETURI} ${OUTFILEOPT} "$target" "$url" || \
                                                if [ "`echo $url | grep -E 'ftp://'`" ]; then
                                                        update_shell_title "${GETURI2%% *}: $url"
This page took 0.087045 seconds and 4 git commands to generate.