From 41ab871af052bce376870ec2412e1ed44f6876d4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 20 Mar 2021 17:15:48 +0100 Subject: [PATCH] luci-app-opkg: fix parsing empty package repository indexes Signed-off-by: Jo-Philipp Wich (cherry picked from commit 3bcbcbf0889142ca19b893f41318963b69de90ab) --- .../luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8e33d56379..2fc6555813 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 @@ -86,7 +86,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 ]; -- 2.30.2