From 9a6e3ccc39dd168b36ad81a189d81a963c9d97d4 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sun, 15 Jan 2017 15:26:35 +0000 Subject: [PATCH] fix parsing of manually installed packages git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3546 2a923420-c742-0410-a762-8d5b09965624 --- webif/lib/pkg.class | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webif/lib/pkg.class b/webif/lib/pkg.class index 14a1ec8..4fd01e4 100755 --- a/webif/lib/pkg.class +++ b/webif/lib/pkg.class @@ -22,7 +22,9 @@ pkg method _load {nm} { if {[string match { *} $line]} { append descr $line } else { - regexp {^[^ ]+ - ([^ ]+) - (.*)$} $line x xlatest descr + set xlatest $latest + regexp {^[^ ]+ - ([^ ]+)(?: - (.*))?$} $line x \ + xlatest descr if {[pkg vercompare $xlatest $latest] > 0} { set latest $xlatest }