On 30/08/2015 16:37, Hannu Nyman wrote: > '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 in the listing. > * Default behaviour is to print the list of available packages as > earlier: "name - version - description" > * with "--size" the output of is "name - version - size - description". > > All current functionality should continue working without any change. > Luci might be extended to utilize the new options to e.g. answer > https://github.com/openwrt/luci/issues/19 > > Signed-off-by: Hannu Nyman < hannu.ny...@iki.fi> > >
Looks good but needs a rebase to apply. can you send a V2 please John --- > > Tested with ar71xx / WNDR3700: > > opkg package size increase is minimal: > > root@OpenWrt2:~# ls -l /bin/opkg > -rwxr-xr-x 1 root root 101532 Aug 29 23:05 /bin/opkg > > root@OpenWrt2:~# opkg install > /tmp/opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-9_ar71xx.ipk > Upgrading opkg on root from 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-8 > to 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-9... > Configuring opkg. > > root@OpenWrt2:~# ls -l /bin/opkg > -rwxr-xr-x 1 root root 101548 Aug 29 23:05 /bin/opkg > > --size works as expected: > (packages not from "packages" feed have been removed for clarity) > > root@OpenWrt2:/tmp# opkg list j* > jansson - 2.7-1 - Jansson is a C library for encoding, decoding and > manipulating JSON data > joe - 4.0-4 - Joe is world-famous Wordstar like text editor, that also > features > Emacs and Pico emulation > jpeg-tools - 9a-1 - The Independent JPEG Group's JPEG manipulation tools > json4lua - 0.9.53-1 - JSON and JSONRPC for Lua > > root@OpenWrt2:/tmp# opkg list --size j* > jansson - 2.7-1 - 19182 - Jansson is a C library for encoding, decoding > and manipulating JSON data > joe - 4.0-4 - 173911 - Joe is world-famous Wordstar like text editor, > that also features > Emacs and Pico emulation > jpeg-tools - 9a-1 - 31188 - The Independent JPEG Group's JPEG > manipulation tools > json4lua - 0.9.53-1 - 7205 - JSON and JSONRPC for Lua > > ------------- > https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/ > > > jansson_2.7-1_ar71xx.ipk 26-Aug-2015 > 05:20 19182 > joe_4.0-4_ar71xx.ipk 26-Aug-2015 > 05:20 173911 > jpeg-tools_9a-1_ar71xx.ipk 26-Aug-2015 > 00:04 31188 > json4lua_0.9.53-1_ar71xx.ipk 26-Aug-2015 > 05:21 7205 > > > > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel