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,
name =;
if (name->pkgs == NULL)
for (j = 0; j < name->pkgs->num; j++) {
pkg = name->pkgs->item[j];
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