diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-14 12:01:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-14 12:01:09 +0000 |
commit | b91f9406dacb8585dd2f50548f72a36f378f5933 (patch) | |
tree | 85625267da7ee951c3ffd542783dfd0e4c08d244 /src/apk_database.h | |
parent | 6db3bbd790954ce2db241fd68f4b10e34c442893 (diff) | |
download | apk-tools-b91f9406dacb8585dd2f50548f72a36f378f5933.tar.gz apk-tools-b91f9406dacb8585dd2f50548f72a36f378f5933.tar.bz2 apk-tools-b91f9406dacb8585dd2f50548f72a36f378f5933.tar.xz apk-tools-b91f9406dacb8585dd2f50548f72a36f378f5933.zip |
add: support for virtual meta packages
implements 'apk add --virutal metaname dep1 dep2...' where metaname will
be an empy meta package with dep1 and dep2 as dependencies.
This is useful to prevent abuild to add each makedepend to world which
causes some headache when it comes to unintalling them after sucessful build.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r-- | src/apk_database.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h index 0a0e52d..523dab5 100644 --- a/src/apk_database.h +++ b/src/apk_database.h @@ -55,6 +55,7 @@ struct apk_db_dir_instance { }; #define APK_NAME_TOPLEVEL 0x0001 +#define APK_NAME_VIRTUAL 0x0002 struct apk_name { apk_hash_node hash_node; @@ -120,6 +121,7 @@ int apk_db_write_config(struct apk_database *db); void apk_db_close(struct apk_database *db); struct apk_package *apk_db_pkg_add_file(struct apk_database *db, const char *file); +struct apk_package *apk_db_pkg_add(struct apk_database *db, struct apk_package *pkg); struct apk_package *apk_db_get_pkg(struct apk_database *db, csum_t sum); struct apk_package *apk_db_get_file_owner(struct apk_database *db, apk_blob_t filename); |