summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-15 05:27:06 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-15 05:27:06 +0000
commit594e333a7788c47e7c83b655a34f7be73d0551d9 (patch)
tree1959bac58961fa0a94c2d3806336d552e81eb83b /modules
parent00f23f60f6af76c9a1b772e2e41c94138f59bb3b (diff)
modules/admin-full: support installing multiple packages at once
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/controller/admin/system.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua
index d948f2820..123e00582 100644
--- 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