From f771f5501700ca4820c40b2937257c4381996843 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Fri, 6 Jan 2012 23:39:15 +0000 Subject: [PATCH] fix pkg upgrade tab git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@631 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/lib/pkg.class | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/var/mongoose/lib/pkg.class b/var/mongoose/lib/pkg.class index a02671e0..2b714448 100755 --- a/var/mongoose/lib/pkg.class +++ b/var/mongoose/lib/pkg.class @@ -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