modules/admin-full: support installing multiple packages at once

This commit is contained in:
Jo-Philipp Wich 2011-10-15 05:27:06 +00:00
parent 00f23f60f6
commit 594e333a77

View file

@ -83,10 +83,13 @@ function action_packages()
end end
if uinst then if uinst then
install[uinst], out, err = ipkg.install(uinst) local pkg
stdout[#stdout+1] = out for pkg in luci.util.imatch(uinst) do
stderr[#stderr+1] = err install[uinst], out, err = ipkg.install(pkg)
changes = true stdout[#stdout+1] = out
stderr[#stderr+1] = err
changes = true
end
end end
-- Remove packets -- Remove packets