luci-app-opkg: fix parsing empty package repository indexes

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2021-03-20 17:15:48 +01:00
parent 3d6713dcc1
commit 3bcbcbf088

View file

@ -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 ];