for-15.05 opkg/packages: Show package size in list of available packages
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 16 Sep 2015 09:47:48 +0000 (12:47 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 15 Oct 2015 15:02:44 +0000 (18:02 +0300)
commitce5c787989701eb406162fa467e43f034cbbf292
tree798ffb932069ff82bb0f5c7a1dadb0383e15156a
parent3e199390f7be8231b0249a3d1045ad986c1e3e64
for-15.05 opkg/packages: Show package size in list of available packages

CC15.05 opkg was patched by https://dev.openwrt.org/changeset/47196
to support the --size option. This commit backports the Luci features:

Add package *.ipk size information to package listing in Luci,
as opkg was today extended to support listing also the size information.
Visible fields are now: name, version, size, description

That will help users considering installation of a certain package
to assess its size impact on flash.

Note: Opkg data includes the size of the .ipk file, not the expanded size.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 3288fe76ab3d2269abcf902d0df6f847c6200e8e)
modules/luci-base/luasrc/model/ipkg.lua
modules/luci-mod-admin-full/luasrc/view/admin_system/packages.htm