tazpkg rev 150

tazpkgbox: add SHORT_DESC in package_info
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 06 10:56:45 2008 +0000 (2008-08-06)
parents c8ec3c01ac1f
children 20af804f3fa3
files lib/tazpkgbox/package_infos
line diff
     1.1 --- a/lib/tazpkgbox/package_infos	Mon Aug 04 15:20:44 2008 +0200
     1.2 +++ b/lib/tazpkgbox/package_infos	Wed Aug 06 10:56:45 2008 +0000
     1.3 @@ -93,7 +93,7 @@
     1.4  
     1.5  	<tree>
     1.6  		<width>460</width><height>160</height>
     1.7 -		<label>Package|$PKG</label>
     1.8 +		<label>$PKG|$SHORT_DESC</label>
     1.9  		<variable>FIELD</variable>
    1.10  		<item icon=\"tazpkg\">Version: | $VERSION</item>
    1.11  		<item icon=\"tazpkg\">Category: | $CATEGORY</item>"
    1.12 @@ -179,6 +179,7 @@
    1.13  	RES=`grep "^$PKG" /var/lib/tazpkg/packages.desc | head -n 1`
    1.14  	PACKAGE=`echo "$RES" | cut -d "|" -f 1`
    1.15  	VERSION=`echo "$RES" | cut -d "|" -f 2`
    1.16 +	SHORT_DESC=`echo "$RES" | cut -d "|" -f 3`
    1.17  	CATEGORY=`echo "$RES" | cut -d "|" -f 4`
    1.18  	WEB_SITE=`echo "$RES" | cut -d "|" -f 5`
    1.19  	SIZES=`grep -A 3 "^$(echo $PACKAGE)$" /var/lib/tazpkg/packages.txt | tail -1`
    1.20 @@ -188,7 +189,7 @@
    1.21  
    1.22  	<tree>
    1.23  		<width>460</width><height>140</height>
    1.24 -		<label>Package|$PKG</label>
    1.25 +		<label>$PKG|$SHORT_DESC</label>
    1.26  		<item icon=\"tazpkg\">Name: | $PACKAGE</item>
    1.27  		<item icon=\"tazpkg\">Version: | $VERSION</item>
    1.28  		<item icon=\"tazpkg\">Category: | $CATEGORY</item>"