luci-app-opkg: honor installed flag to skip half-installed packages
authorJo-Philipp Wich <jo@mein.io>
Wed, 19 Jun 2019 09:21:18 +0000 (11:21 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 19 Jun 2019 09:24:27 +0000 (11:24 +0200)
commit88282c14cf521f195536370c004d953e289ea3e4
treef29f6082b1874bc7acd3c495caa2e17bf98bee38
parentcffeee49d7be19743cc40459fa1f423517f215c0
luci-app-opkg: honor installed flag to skip half-installed packages

Do not consider half-installed packages (which happens after an
installation failure) to be installed.

Ref: https://github.com/openwrt/luci/pull/2775
Signed-off-by: Dirk Brenken <dev@brenken.org>
[split into multiple commits, refactored code, use local variables]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js