forked from hummypkg/webif
fix pkg upgrade tab
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@631 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
267ba4fade
commit
f771f55017
@ -12,9 +12,10 @@ set ::pkgmeta {}
|
||||
|
||||
pkg method _load {nm} {
|
||||
set name $nm
|
||||
set info [join [split [exec /bin/opkg list $nm] "\n"] " "]
|
||||
#rs - 0.4.0 rs - 0.4.2 - Remote scheduling support.
|
||||
regexp {^[^ ]+ - [^ ]+ [^ ]+ - ([^ ]+) - (.*)$} $info full latest descr
|
||||
foreach line [split [exec /bin/opkg list $nm] "\n"] {
|
||||
# betaftpd - 0.0.8pre17-1 - Description...
|
||||
regexp {^[^ ]+ - ([^ ]+) - (.*)$} $line x latest descr
|
||||
}
|
||||
set info [exec /bin/opkg list-installed $nm]
|
||||
regexp {^([^ ]+) - ([^ ]+)$} $info full xname installed
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user