tazpkg diff tazpkg-box @ rev 971

modules/get: fix plain mode and cookmode again
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 26 20:27:56 2018 +0200 (2018-11-26)
parents 688494ca8f5f
children
line diff
     1.1 --- a/tazpkg-box	Mon Nov 23 04:52:58 2015 +0200
     1.2 +++ b/tazpkg-box	Mon Nov 26 20:27:56 2018 +0200
     1.3 @@ -15,7 +15,7 @@
     1.4  text="<b>$(_ 'SliTaz Package Action')</b>"
     1.5  icon="system-software-install"
     1.6  opts="--window-icon=$icon --image=$icon --image-on-top --center --on-top \
     1.7 ---height=350 --width=570 --title=TazPkg"
     1.8 +--height=350 --width=550 --title=TazPkg"
     1.9  
    1.10  
    1.11  usage() {
    1.12 @@ -36,7 +36,7 @@
    1.13  # Nice GTK output for install and extract.
    1.14  
    1.15  output() {
    1.16 -	yad --text-info $opts --tail --margins='4' --text="$text" --fontname='monospace,8' \
    1.17 +	yad --text-info $opts --tail --margins='4' --text="$text" --fontname='monospace,10' \
    1.18  		--button='gtk-close:0'
    1.19  }
    1.20  
    1.21 @@ -66,8 +66,8 @@
    1.22  	# Deal with --button values
    1.23  	case "$?" in
    1.24  		1) exit 0 ;;
    1.25 -		2) tazpkg extract "$pkg" . --output='raw' | output ;;
    1.26 -		3) tazpkg -i "$pkg" . --forced --output='raw' | output ;;
    1.27 +		2) tazpkg extract "$pkg" . --output='raw' --cols=65 | output ;;
    1.28 +		3) tazpkg -i "$pkg" . --forced --output='raw' --cols=65 | output ;;
    1.29  	esac
    1.30  }
    1.31  
    1.32 @@ -79,7 +79,7 @@
    1.33  	_ 'Downloading: %s' "$pkg"; newline
    1.34  	TMP_DIR=$(mktemp); cd "$TMP_DIR"
    1.35  	wget "$url" 2>&1
    1.36 -	tazpkg -i "$TMP_DIR/$pkg" --forced --output='raw' 2>&1
    1.37 +	tazpkg -i "$TMP_DIR/$pkg" --forced --output='raw' --cols=65 2>&1
    1.38  	rm -f "$TMP_DIR"
    1.39  }
    1.40