tazpkg rev 337

tazpkgbox: add view online receipt item for all pkgs
author Rohit Joshi <jozee@slitaz.org>
date Tue Mar 23 12:25:29 2010 -0400 (2010-03-23)
parents c7be7312c737
children d1d5a57588a5
files lib/tazpkgbox/package_infos
line diff
     1.1 --- a/lib/tazpkgbox/package_infos	Tue Mar 23 21:05:53 2010 +0100
     1.2 +++ b/lib/tazpkgbox/package_infos	Tue Mar 23 12:25:29 2010 -0400
     1.3 @@ -27,6 +27,7 @@
     1.4  	. $RECEIPT
     1.5  	case "$2" in
     1.6  	Web*) browser $WEB_SITE &;;
     1.7 +	Tip*) browser http://hg.slitaz.org/wok/raw-file/tip/$3/receipt &;;
     1.8  	Siz*) xterm -T "$3 depends (q to quit)" -e "$0 sizes $3 | less";;
     1.9  	Upg*) xterm -T "$3 upgrade" -e "tazpkg get-install $3 --forced ; sleep 2";;
    1.10  	Hand*) browser $HANDBOOK_URL &;;
    1.11 @@ -238,7 +239,7 @@
    1.12  		<item icon=\"tazpkg\">Modified by: | $(xargs echo < $ROOT/installed/$PKG/modifiers)</item>"
    1.13  PACKAGE_INFOS="$PACKAGE_INFOS
    1.14  		<item icon=\"applications-internet\">Website: | $WEB_SITE</item>
    1.15 -		<item icon=\"help\">Tip: | double-click items above for more information</item>
    1.16 +		<item icon=\"help\">Tip: | double-click any item for more information</item>
    1.17  		<action> $0 info \"\$FIELD\" $PKG </action>		
    1.18  	</tree>
    1.19  
    1.20 @@ -409,8 +410,10 @@
    1.21  		<item icon=\"tazpkg\">Config files: | $CONFIG_FILES</item>"
    1.22  	PACKAGE_INFOS="$PACKAGE_INFOS
    1.23  		<item icon=\"applications-internet\">Website: | $WEB_SITE</item>		
    1.24 -		<item icon=\"help\">Tip: | double-click Website for more information</item>
    1.25 +		<item icon=\"text-editor\">Receipt: | double-click to view receipt</item>
    1.26  		<action>case \$FIELD2 in Web*) browser $WEB_SITE &;; esac</action>
    1.27 +		<action>case \$FIELD2 in Rec*) browser http://hg.slitaz.org/wok/raw-file/tip/$PACKAGE/receipt &;; esac</action>
    1.28 +		
    1.29  	</tree>
    1.30  
    1.31  	<hbox>"