forked from hummypkg/webif
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:
parent
8b021ec4b7
commit
9a6e3ccc39
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user