diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-12 06:27:25 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-12 06:27:25 +0000 |
commit | 2b6e5d6e40a0b8a7ef650ef66996148cfdca1f2c (patch) | |
tree | ea0c241efa701ae7ba3772521604ff7c378252c2 /src/database.c | |
parent | ade18415414b49a7e78ac7c8b1a6c81cd81bb1a1 (diff) | |
download | apk-tools-2b6e5d6e40a0b8a7ef650ef66996148cfdca1f2c.tar.gz apk-tools-2b6e5d6e40a0b8a7ef650ef66996148cfdca1f2c.tar.bz2 apk-tools-2b6e5d6e40a0b8a7ef650ef66996148cfdca1f2c.tar.xz apk-tools-2b6e5d6e40a0b8a7ef650ef66996148cfdca1f2c.zip |
index: support for -d to delete packages from given index
The syntax is: apk index -d /path/to/APK_INDEX.gz pkg...
It does not seem like its possible to remove packages in the db so we
trick apk_db_index_write() by setting the repo to on-zero.
It's still not perfect since it does not recalculate the dependencies.
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 4da547d..e91c64a 100644 --- a/src/database.c +++ b/src/database.c @@ -370,7 +370,7 @@ static struct apk_package *apk_db_pkg_add(struct apk_database *db, struct apk_pa return idb; } -static int apk_db_index_read(struct apk_database *db, struct apk_istream *is, int repo) +int apk_db_index_read(struct apk_database *db, struct apk_istream *is, int repo) { struct apk_package *pkg = NULL; struct apk_db_dir_instance *diri = NULL; |