opkg: Extend 'opkg list' command to optionally display package size
authorJohn Crispin <blogic@openwrt.org>
Wed, 16 Sep 2015 09:37:39 +0000 (09:37 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 16 Sep 2015 09:37:39 +0000 (09:37 +0000)
commitc5402988e080bd460440d2c194509faacb22dc66
tree999d5897951fe2b466abb9ddf3de3ff611b32e9b
parent7b4e665f0cac0c09ee781f3eb3b19988ff6a6dff
opkg: Extend 'opkg list' command to optionally display package size

'opkg list' command only displays the available packages' name, version and
description. It would be useful to also see the approximate size of the
available package.

This patch extends "opkg list" command with "--size" to optionally show also
the *.ipk size.
* Default behaviour is to list the available packages as earlier:
  "name - version - description"
* with "--size" the output of is "name - version - size - description".

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46980 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/system/opkg/Makefile
package/system/opkg/patches/260-add-print-package-size.patch [new file with mode: 0644]