fix avail

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@630 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-01-06 23:27:35 +00:00
parent c2ec779465
commit 267ba4fade

View File

@ -13,7 +13,8 @@ set ::pkgmeta {}
pkg method _load {nm} { pkg method _load {nm} {
set name $nm set name $nm
set info [join [split [exec /bin/opkg list $nm] "\n"] " "] set info [join [split [exec /bin/opkg list $nm] "\n"] " "]
regexp {^([^ ]+) - ([^ ]+) - (.*)$} $info full xname latest descr #rs - 0.4.0 rs - 0.4.2 - Remote scheduling support.
regexp {^[^ ]+ - [^ ]+ [^ ]+ - ([^ ]+) - (.*)$} $info full latest descr
set info [exec /bin/opkg list-installed $nm] set info [exec /bin/opkg list-installed $nm]
regexp {^([^ ]+) - ([^ ]+)$} $info full xname installed regexp {^([^ ]+) - ([^ ]+)$} $info full xname installed