summaryrefslogtreecommitdiff
path: root/src/del.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-13 18:41:03 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-13 18:41:03 +0300
commit6c96730cdf86f900bc74429dc35b6edb4bcaa784 (patch)
tree9bd2012b20d8c9ea0b237b74af9091fe5d41a365 /src/del.c
parent892395d5947a0ebb04130df0f92cd107fba44d6d (diff)
downloadapk-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/del.c b/src/del.c
index 26dce6a..03b720e 100644
--- a/src/del.c
+++ b/src/del.c
@@ -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);
}