[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Tazpanel - pkgs.cgi
- From: Daniele Guerrieri <d.guerrieri@xxxxxxxxx>
- Date: Mon, 23 May 2011 17:27:54 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=OA8S/+fr4eS9VO5Y33EIfzqX73kk6HUqmNLgk9AW5Wo=; b=fEJ+frAg8Rzh5kF2DkXhAGI1nILhz5Sb0QwRVdu5epvpkjrY4FoewA3Ss+2cjvTyt4 9JoBxl/y6MzFOt3SYzIYnseDK3uVdUgSqZF1v/rxCxu38Yj+IyhYUzXvnC7bQPGqqTTo 105FUQhFG/HOQ1z03X6UijMg74Z6w6Gq/Lz5o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=g24UMDdbyAVs7YIpnQCwRaZtR1Z2i6wz6V+kqSGVbGWxDqFNBqs/C4o4qYGigIcTMc lF3r7GG6lK6iYtpJM6ZEjQ82YAdFKnB4CXsuBg7GaIHkXhwwg38DSTJ10ibs7fb6ioee 0foKQwu29H5rXADhpEU+1wRdl1DceX+6xIuaw=
Hi,
i've cloned tazpanel:
hg clone http://hg.slitaz.org/tazpanel
but still installing packages didn't work; so i've simply used $(GET)
and everything should work, or not?
cmd=$(GET do)
pkg=$(get pkg)
DIFF output
--- pkgs.cgi
+++ taz2/tazpanel/pkgs.cgi
@@ -462,8 +462,8 @@
(t opt=""
pkgs=""
cmdline=`echo ${QUERY_STRING#do=} | sed s'/&/ /g'`
- cmd=$(GET do)
- pkgs=$(GET pkg)
+ cmd=`echo ${cmdline} | awk '{print $1}'`
+ pkgs=`echo $cmdline | sed -e s'/+/ /g' -e s'/pkg=//g' -e s/$cmd//`
cmd=`echo $cmd | tr [A-Z] [a-z]`
case $cmd in
install)
Daniele
---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/