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>
Mon, 24 Jun 2019 07:24:47 +0000 (09:24 +0200)
commit16df8c93f2431c2804e81aace62210752c417466
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>
(cherry picked from commit 88282c14cf521f195536370c004d953e289ea3e4)
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js