tazpkg diff modules/get @ rev 937

modules/get: make wget progress metter working again
Now, Busybox v. 1.26 make the difference whether it outputs progress meter to the file or to the tty (libbb/progress.c).
Bug report: http://forum.slitaz.org/topic/two-issues-with-tazpkg-934
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 27 12:13:57 2017 +0200 (2017-01-27)
parents ab2442591abf
children 540af29a932c
line diff
     1.1 --- a/modules/get	Sun Sep 18 14:15:39 2016 +0100
     1.2 +++ b/modules/get	Fri Jan 27 12:13:57 2017 +0200
     1.3 @@ -96,7 +96,7 @@
     1.4  			debug "  wget -c -T 30 -U $UA ${1%/}/$2"
     1.5  			q=''; [ -n "$quiet" ] && q='-q'
     1.6  			# Display abridged wget status (skip info about connections)
     1.7 -			wget -c $q -T 30 -U $UA ${1%/}/$2 2>&1 | awk 'BEGIN{RS="\r"}$0~"%"{printf "%s\r",$0}' >&2
     1.8 +			wget -c $q -T 30 -U $UA ${1%/}/$2 2>&1 | awk '$0~"%"{printf "%s\r",$0}' >&2
     1.9  			;;
    1.10  		*)
    1.11  			debug "  cp ${1%/}/$2 ."