tazlito diff tazlito @ rev 417

tazlito: fix old busybox awk function: "%*x formats are not supported" (supported in current busybox 1.23.2); small fixes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Mar 14 00:56:29 2016 +0200 (2016-03-14)
parents 22eaf700fab5
children 0d0f417f54c7
line diff
     1.1 --- a/tazlito	Wed Feb 24 22:02:58 2016 +0200
     1.2 +++ b/tazlito	Mon Mar 14 00:56:29 2016 +0200
     1.3 @@ -1356,10 +1356,9 @@
     1.4  
     1.5  	# Show list of mirrors
     1.6  	[ -f "$priority" ] && awk -vdb="$root$LOCALSTATE" '
     1.7 -	function show(num, name, url,   pad, len) {
     1.8 -		pad = "................................";
     1.9 -		len = (32 - length(name));
    1.10 -		printf " %-1.1d. %s%*.*s %-44.44s\n", num, name, len, len, pad, url;
    1.11 +	function show(num, name, url,   pad) {
    1.12 +		pad = substr("................................", 1, 32 - length(name));
    1.13 +		printf " %-1.1d. %s%s %-44.44s\n", num, name, pad, url;
    1.14  	}
    1.15  	{
    1.16  		num++;
    1.17 @@ -1372,7 +1371,7 @@
    1.18  		show(num, "main", url);
    1.19  	}' "$priority"
    1.20  
    1.21 -	tazpkg recharge --quiet
    1.22 +	tazpkg recharge --quiet >/dev/null
    1.23  }
    1.24  
    1.25  
    1.26 @@ -2176,6 +2175,7 @@
    1.27  		# Misc checks
    1.28  		mkdir -p "$PACKAGES_REPOSITORY"
    1.29  		REPACK=$(yesorno 'Repack packages from rootfs?' 'n')
    1.30 +		newline
    1.31  
    1.32  		# Mount CD-ROM to be able to repack boot-loader packages
    1.33  		if [ ! -e /boot -a -n "$CDROM" ]; then