tazpkg rev 92

tazpkgbox: add reconfigure button
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 19 20:53:57 2008 +0000 (2008-05-19)
parents 3cdc61b655ec
children e64d6b7e4d73
files lib/tazpkgbox/package_infos
line diff
     1.1 --- a/lib/tazpkgbox/package_infos	Mon May 19 20:53:00 2008 +0000
     1.2 +++ b/lib/tazpkgbox/package_infos	Mon May 19 20:53:57 2008 +0000
     1.3 @@ -30,7 +30,16 @@
     1.4  		<item icon=\"applications-internet\">Web site: | $WEB_SITE</item>
     1.5  	</tree>
     1.6  
     1.7 -	<hbox>
     1.8 +	<hbox>"
     1.9 +grep -q post_install /var/lib/tazpkg/installed/$PKG/receipt && PACKAGE_INFOS="$PACKAGE_INFOS
    1.10 +		<button>
    1.11 +			<label>Reconfigure</label>
    1.12 +			<input file icon=\"reload\"></input>
    1.13 +			<action>xterm -T \"Reconfigure $PACKAGE\" $XTERM_OPTS -e \"\
    1.14 +			tazpkg reconfigure $PACKAGE; sleep 2\"</action>
    1.15 +			<action type=\"closewindow\">INSTALLED_PACKAGE_ACTIONS</action>
    1.16 +		</button>"
    1.17 +PACKAGE_INFOS="$PACKAGE_INFOS
    1.18  		<button>
    1.19  			<label>Remove</label>
    1.20  			<input file icon=\"edit-delete\"></input>