modules/admin-full: support installing multiple packages at once
This commit is contained in:
parent
00f23f60f6
commit
594e333a77
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue