tazpkg rev 200

tazpkgbox: extend get-* autoexec support to non-free
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 12 16:44:21 2008 +0000 (2008-11-12)
parents 50bdf9ad81ce
children 4ed1087d5b4c
files lib/tazpkgbox/package_infos
line diff
     1.1 --- a/lib/tazpkgbox/package_infos	Tue Nov 11 12:09:06 2008 +0000
     1.2 +++ b/lib/tazpkgbox/package_infos	Wed Nov 12 16:44:21 2008 +0000
     1.3 @@ -179,7 +179,7 @@
     1.4  	</tree>
     1.5  
     1.6  	<hbox>"
     1.7 -[ $CATEGORY = non-free -a ! -d /var/lib/tazpkg/installed/${PKG#get-} ] && PACKAGE_INFOS="$PACKAGE_INFOS
     1.8 +[ ${PKG%-*} = get -a ! -d /var/lib/tazpkg/installed/${PKG#get-} ] && PACKAGE_INFOS="$PACKAGE_INFOS
     1.9  		<button>
    1.10  			<label>Install</label>
    1.11  			<input file icon=\"go-next\"></input>
    1.12 @@ -274,7 +274,7 @@
    1.13  	</tree>
    1.14  
    1.15  	<hbox>"
    1.16 -	[ $CATEGORY = non-free ] && PACKAGE_INFOS="$PACKAGE_INFOS
    1.17 +	[ ${PACKAGE%-*} = get ] && PACKAGE_INFOS="$PACKAGE_INFOS
    1.18  		<checkbox>
    1.19  			<label>Auto exec</label>
    1.20  			<variable>AUTO_EXEC</variable>
    1.21 @@ -292,7 +292,7 @@
    1.22  			<action>xterm -T \"Install $PACKAGE\" $XTERM_OPTS -e \"\
    1.23  			if [ x\$AUTO_DEPENDS != xtrue ]; then tazpkg get-install $PACKAGE;\
    1.24  			else yes y | tazpkg get-install $PACKAGE; fi; \
    1.25 -			[ x\${AUTO_EXEC} = xtrue -a $CATEGORY = non-free ] && $PACKAGE; \
    1.26 +			[ x\${AUTO_EXEC} = xtrue ] && $PACKAGE; \
    1.27  			sleep 2\"</action>
    1.28  			<action type=\"closewindow\">MIRRORED_PACKAGE_ACTIONS</action>
    1.29  		</button>