From: Jo-Philipp Wich Date: Sat, 15 Oct 2011 05:27:06 +0000 (+0000) Subject: modules/admin-full: support installing multiple packages at once X-Git-Tag: 0.11.0~1532 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=594e333a7788c47e7c83b655a34f7be73d0551d9;p=project%2Fluci.git modules/admin-full: support installing multiple packages at once --- diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua index d948f28202..123e005822 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