diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-08-12 19:17:46 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-08-12 19:17:46 +0300 |
commit | 36b5cee98b1e80a493d291e9bffa1ed120ed908a (patch) | |
tree | 88855947e73b5e0f0a0dda3bd138064c401ff441 /src/fix.c | |
parent | dee6ffa492c2efee982dcd0b4724213317eceb37 (diff) | |
download | apk-tools-36b5cee98b1e80a493d291e9bffa1ed120ed908a.tar.gz apk-tools-36b5cee98b1e80a493d291e9bffa1ed120ed908a.tar.bz2 apk-tools-36b5cee98b1e80a493d291e9bffa1ed120ed908a.tar.xz apk-tools-36b5cee98b1e80a493d291e9bffa1ed120ed908a.zip |
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.
Diffstat (limited to 'src/fix.c')
-rw-r--r-- | src/fix.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |