luci-app-opkg: fix parsing empty package repository indexes
Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 3bcbcbf0889142ca19b893f41318963b69de90ab)
This commit is contained in:
parent
d7568b43ff
commit
6639e31a06
@ -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 ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user