summaryrefslogtreecommitdiff
path: root/src/fix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fix.c')
-rw-r--r--src/fix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fix.c b/src/fix.c
index e54631d..756db6a 100644
--- a/src/fix.c
+++ b/src/fix.c
@@ -53,7 +53,7 @@ static int fix_main(void *pctx, struct apk_database *db, int argc, char **argv)
goto err;
for (j = 0; j < name->pkgs->num; j++) {
- if (apk_pkg_get_state(name->pkgs->item[j]) == APK_PKG_INSTALLED)
+ if (name->pkgs->item[j]->ipkg != NULL)
break;
}
if (j >= name->pkgs->num) {