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

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3bcbcbf088)
This commit is contained in:
Jo-Philipp Wich 2021-03-20 17:15:48 +01:00
parent d7568b43ff
commit 6639e31a06

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