diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-08-13 18:41:03 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-08-13 18:41:03 +0300 |
commit | 6c96730cdf86f900bc74429dc35b6edb4bcaa784 (patch) | |
tree | 9bd2012b20d8c9ea0b237b74af9091fe5d41a365 /src/del.c | |
parent | 892395d5947a0ebb04130df0f92cd107fba44d6d (diff) | |
download | apk-tools-6c96730cdf86f900bc74429dc35b6edb4bcaa784.tar.gz apk-tools-6c96730cdf86f900bc74429dc35b6edb4bcaa784.tar.bz2 apk-tools-6c96730cdf86f900bc74429dc35b6edb4bcaa784.tar.xz apk-tools-6c96730cdf86f900bc74429dc35b6edb4bcaa784.zip |
add, del, db: fix various bugs introduced by earlier commits
- make virtual packages work again
- make apk del (for non-empty packages) work again
Diffstat (limited to 'src/del.c')
-rw-r--r-- | src/del.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ static int del_main(void *ctx, struct apk_database *db, int argc, char **argv) for (i = 0; i < argc; i++) { name = apk_db_get_name(db, APK_BLOB_STR(argv[i])); name->flags &= ~APK_NAME_TOPLEVEL; + name->flags |= APK_NAME_TOPLEVEL_OVERRIDE; apk_deps_del(&db->world, name); } |