projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5826f1
)
luci-base: filter invalid opkg status lines
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 20 Oct 2015 19:04:38 +0000
(21:04 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 20 Oct 2015 19:04:46 +0000
(21:04 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/model/ipkg.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/model/ipkg.lua
b/modules/luci-base/luasrc/model/ipkg.lua
index 2ed92ca706427eea91d99926c5296545ed67c025..e653b0346558d81322e9c9c5fcdf05f2c3301188 100644
(file)
--- a/
modules/luci-base/luasrc/model/ipkg.lua
+++ b/
modules/luci-base/luasrc/model/ipkg.lua
@@
-139,11
+139,13
@@
local 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
@@
-238,4
+240,3
@@
function compare_versions(ver1, comp, ver2)
-- all equal and not compare greater or lower then true
return not (comp == "<" or comp == ">")
end
-