summaryrefslogtreecommitdiff
path: root/src/apk_package.h
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-05-27 21:49:53 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-05-27 21:49:53 +0000
commit693b4bcdb0f22904a521a7c8ac4f13e697dc4d71 (patch)
treea4cdf39e5c4ad6169bf3a3a261d1c833298238f5 /src/apk_package.h
parentee5ce7284aef8679fabcf728dd5bd5a17c965798 (diff)
downloadapk-tools-693b4bcdb0f22904a521a7c8ac4f13e697dc4d71.tar.gz
apk-tools-693b4bcdb0f22904a521a7c8ac4f13e697dc4d71.tar.bz2
apk-tools-693b4bcdb0f22904a521a7c8ac4f13e697dc4d71.tar.xz
apk-tools-693b4bcdb0f22904a521a7c8ac4f13e697dc4d71.zip
version: add support for fuzzy version matching
This is useful for requirements such as: python3=~3.6, which would match python3-3.6.[0-9]. This implementation should in theory be backwards compatible with the implementation in Adelie.
Diffstat (limited to 'src/apk_package.h')
-rw-r--r--src/apk_package.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index ab7ab02..c561fc1 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -73,7 +73,8 @@ struct apk_dependency {
unsigned broken : 1;
unsigned repository_tag : 6;
unsigned conflict : 1;
- unsigned result_mask : 3;
+ unsigned result_mask : 4;
+ unsigned fuzzy : 1;
};
APK_ARRAY(apk_dependency_array, struct apk_dependency);