diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-10-21 15:24:24 -0400 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-10-24 10:16:40 -0400 |
commit | e682e6596c101d634b3780a98773c8433b3baadb (patch) | |
tree | c5f5ec848d972555fafc2333f72182734dd7df5b /src/apk_package.h | |
parent | bd0242e1de1c21d4d58cfd86e98b223b6e3e7e12 (diff) | |
download | apk-tools-e682e6596c101d634b3780a98773c8433b3baadb.tar.gz apk-tools-e682e6596c101d634b3780a98773c8433b3baadb.tar.bz2 apk-tools-e682e6596c101d634b3780a98773c8433b3baadb.tar.xz apk-tools-e682e6596c101d634b3780a98773c8433b3baadb.zip |
solver, pkg: implement versioned conflicts
One can now say in dependency "!foo<2" which means, that if foo is
installed, it needs to be >=2, but it's not a required dependency.
Diffstat (limited to 'src/apk_package.h')
-rw-r--r-- | src/apk_package.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk_package.h b/src/apk_package.h index 41d65cb..c68fef7 100644 --- a/src/apk_package.h +++ b/src/apk_package.h @@ -59,7 +59,8 @@ struct apk_sign_ctx { struct apk_dependency { struct apk_name *name; apk_blob_t *version; - int result_mask; + unsigned optional : 1; + unsigned result_mask : 3; }; APK_ARRAY(apk_dependency_array, struct apk_dependency); |