projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
daeb201
)
Merge pull request #463 from hnyman/max-len-version
author
Hannu Nyman
<hannu.nyman@iki.fi>
Wed, 2 Sep 2015 05:50:58 +0000
(08:50 +0300)
committer
Hannu Nyman
<hannu.nyman@iki.fi>
Wed, 2 Sep 2015 05:50:58 +0000
(08:50 +0300)
Luci opkg/packages: Limit version string display to 26 chars
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
2e26bd7
..
41633c4
100644
(file)
--- a/
modules/luci-base/luasrc/model/ipkg.lua
+++ b/
modules/luci-base/luasrc/model/ipkg.lua
@@
-139,6
+139,10
@@
local function _list(action, pat, cb)
desc = ""
end
+ if #version > 26 then
+ version = version:sub(1,21) .. ".." .. version:sub(-3,-1)
+ end
+
cb(name, version, desc)
name = nil