git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
00f23f6
)
modules/admin-full: support installing multiple packages at once
author
Jo-Philipp Wich
<redacted>
Sat, 15 Oct 2011 05:27:06 +0000
(
05:27
+0000)
committer
Jo-Philipp Wich
<redacted>
Sat, 15 Oct 2011 05:27:06 +0000
(
05:27
+0000)
modules/admin-full/luasrc/controller/admin/system.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/controller/admin/system.lua
b/modules/admin-full/luasrc/controller/admin/system.lua
index d948f282026335db6809151f52c3487a9bb1b948..123e005822986e474c9a2d933c9f94cf3fd0c716 100644
(file)
--- a/
modules/admin-full/luasrc/controller/admin/system.lua
+++ b/
modules/admin-full/luasrc/controller/admin/system.lua
@@
-83,10
+83,13
@@
function action_packages()
end
if uinst then
- install[uinst], out, err = ipkg.install(uinst)
- stdout[#stdout+1] = out
- stderr[#stderr+1] = err
- changes = true
+ local pkg
+ for pkg in luci.util.imatch(uinst) do
+ install[uinst], out, err = ipkg.install(pkg)
+ stdout[#stdout+1] = out
+ stderr[#stderr+1] = err
+ changes = true
+ end
end
-- Remove packets
git clone https://git.99rst.org/PROJECT