Commit 2cfca5b6 authored by Timo Teräs's avatar Timo Teräs
Browse files

info: fix a --exists to work if the name is non-existant

parent 8c811022
...@@ -94,6 +94,9 @@ static int info_exists(struct info_ctx *ctx, struct apk_database *db, ...@@ -94,6 +94,9 @@ static int info_exists(struct info_ctx *ctx, struct apk_database *db,
continue; continue;
name = dep.name; name = dep.name;
if (name->pkgs == NULL)
continue;
for (j = 0; j < name->pkgs->num; j++) { for (j = 0; j < name->pkgs->num; j++) {
pkg = name->pkgs->item[j]; pkg = name->pkgs->item[j];
if (apk_pkg_get_state(pkg) == APK_PKG_INSTALLED) if (apk_pkg_get_state(pkg) == APK_PKG_INSTALLED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment