fix parsing of manually installed packages

git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3546 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2017-01-15 15:26:35 +00:00
parent 8b021ec4b7
commit 9a6e3ccc39

View File

@ -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
}