summaryrefslogtreecommitdiff
path: root/src/apk_solver_data.h
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-11-02 02:55:17 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-11-02 03:08:24 +0000
commitf18c708183ac735d1787ff5b450d36f6596a10b9 (patch)
tree2a8cbb76760ae075b675f15a751d207059a20b56 /src/apk_solver_data.h
parentee3740fcc681b8585b3d8d363453585cae4257aa (diff)
downloadapk-tools-f18c708183ac735d1787ff5b450d36f6596a10b9.tar.gz
apk-tools-f18c708183ac735d1787ff5b450d36f6596a10b9.tar.bz2
apk-tools-f18c708183ac735d1787ff5b450d36f6596a10b9.tar.xz
apk-tools-f18c708183ac735d1787ff5b450d36f6596a10b9.zip
solver: implement support for choosing default virtuals
By introducing a new package metadata field, `provider_priority` (index letter `k`), we can specify default packages to satisfy a virtual. If a user wishes to select an alternative provider for the virtual, a changeset swapping the default provider for the selected provider will be generated by the dependency resolver.
Diffstat (limited to 'src/apk_solver_data.h')
-rw-r--r--src/apk_solver_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_solver_data.h b/src/apk_solver_data.h
index 43b7a1b..73c2753 100644
--- a/src/apk_solver_data.h
+++ b/src/apk_solver_data.h
@@ -54,6 +54,7 @@ struct apk_solver_package_state {
unsigned seen : 1;
unsigned pkg_available : 1;
unsigned pkg_selectable : 1;
+ unsigned pkg_selected : 1;
unsigned tag_ok : 1;
unsigned tag_preferred : 1;
unsigned dependencies_used : 1;