luci-app-opkg: fix parsing empty package repository indexes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
3d6713dcc1
commit
3bcbcbf088
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ function parseList(s, dest)
|
||||||
key = RegExp.$1.toLowerCase();
|
key = RegExp.$1.toLowerCase();
|
||||||
val = RegExp.$2.trim();
|
val = RegExp.$2.trim();
|
||||||
}
|
}
|
||||||
else {
|
else if (pkg) {
|
||||||
dest.pkgs[pkg.name] = pkg;
|
dest.pkgs[pkg.name] = pkg;
|
||||||
|
|
||||||
var provides = dest.providers[pkg.name] ? [] : [ pkg.name ];
|
var provides = dest.providers[pkg.name] ? [] : [ pkg.name ];
|
||||||
|
|
Loading…
Reference in a new issue