From 36b5cee98b1e80a493d291e9bffa1ed120ed908a Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 12 Aug 2009 19:17:46 +0300 Subject: db, pkg: separate structure for fields of installed packages this makes the database package entry smaller, and we propbably get more fields to installed_package later too. this cleans up the way scripts are stored and is a preparation for supporting triggers. some parsing for trigger meta-data. ref #45. --- src/fix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fix.c') 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) { -- cgit v1.2.3-60-g2f50