summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js2
1 files changed, 1 insertions, 1 deletions
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 be1bd944e6..fe5600e880 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
@@ -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 ];