tazpkg rev 221

tazpkgbox: add description button
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 25 12:31:45 2009 +0000 (2009-01-25)
parents 46fc45c51699
children 58c4a2a55317
files lib/tazpkgbox/package_infos
line diff
     1.1 --- a/lib/tazpkgbox/package_infos	Mon Dec 15 12:35:03 2008 +0000
     1.2 +++ b/lib/tazpkgbox/package_infos	Sun Jan 25 12:31:45 2009 +0000
     1.3 @@ -232,6 +232,14 @@
     1.4  	</tree>
     1.5  
     1.6  	<hbox>"
     1.7 +[ -s /var/lib/tazpkg/installed/$PACKAGE/description.txt ] &&
     1.8 +	PACKAGE_INFOS="$PACKAGE_INFOS
     1.9 +		<button>
    1.10 +			<label>Description</label>
    1.11 +			<input file icon=\"help\"></input>
    1.12 +			<action>xterm -T \"$PKG description (q to quit)\" $XTERM_OPTS \
    1.13 +			-e \"less /var/lib/tazpkg/installed/$PKG/description.txt\"</action>
    1.14 +		</button>"
    1.15  [ ${PKG%%-*} = get -a ! -d /var/lib/tazpkg/installed/${PKG#get-} ] && PACKAGE_INFOS="$PACKAGE_INFOS
    1.16  		<button>
    1.17  			<label>Install</label>