Backport luci-base: filter invalid opkg status lines
Backport of commit 6b3f804
from trunk.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
ce5c787989
commit
c8b12e7fa9
1 changed files with 6 additions and 4 deletions
|
@ -139,11 +139,13 @@ function _list(action, pat, cb)
|
|||
desc = ""
|
||||
end
|
||||
|
||||
if #version > 26 then
|
||||
version = version:sub(1,21) .. ".." .. version:sub(-3,-1)
|
||||
end
|
||||
if name and version then
|
||||
if #version > 26 then
|
||||
version = version:sub(1,21) .. ".." .. version:sub(-3,-1)
|
||||
end
|
||||
|
||||
cb(name, version, sz, desc)
|
||||
cb(name, version, sz, desc)
|
||||
end
|
||||
|
||||
name = nil
|
||||
version = nil
|
||||
|
|
Loading…
Reference in a new issue