summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-opkg/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-20 17:15:48 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-20 17:15:48 +0100
commit3bcbcbf0889142ca19b893f41318963b69de90ab (patch)
treef02115ad3f15fb3e2a3feef693c532ad1f549f26 /applications/luci-app-opkg/htdocs/luci-static
parent3d6713dcc1969b1ef27f79589247ceed69ff657d (diff)
luci-app-opkg: fix parsing empty package repository indexes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-opkg/htdocs/luci-static')
-rw-r--r--applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
index be1bd944e6..fe5600e880 100644
--- a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
+++ b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
@@ -181,7 +181,7 @@ function parseList(s, dest)
key = RegExp.$1.toLowerCase();
val = RegExp.$2.trim();
}
- else {
+ else if (pkg) {
dest.pkgs[pkg.name] = pkg;
var provides = dest.providers[pkg.name] ? [] : [ pkg.name ];