summaryrefslogtreecommitdiff
path: root/src/apk_solver.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-15 13:57:36 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-15 13:57:36 +0200
commit41fb3a4f9e5949a66fedc069f94b75c18614728d (patch)
treeff3ce7bcba056015a01edabc9e55d50894b9eb2a /src/apk_solver.h
parent29064d88f3a972b69a006d7a8092159bd65ef03f (diff)
downloadapk-tools-41fb3a4f9e5949a66fedc069f94b75c18614728d.tar.gz
apk-tools-41fb3a4f9e5949a66fedc069f94b75c18614728d.tar.bz2
apk-tools-41fb3a4f9e5949a66fedc069f94b75c18614728d.tar.xz
apk-tools-41fb3a4f9e5949a66fedc069f94b75c18614728d.zip
solver, db: repository pinning improvements
* solver internally calculates now using tags; not repository masks * installeddb now contains the tag name where the package came from -> we can now handle upgrades properly * the pinning is still a preference, and not strictly enforced; versioned dependencies may overrule preference
Diffstat (limited to 'src/apk_solver.h')
-rw-r--r--src/apk_solver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_solver.h b/src/apk_solver.h
index 235ac0c..7dd2914 100644
--- a/src/apk_solver.h
+++ b/src/apk_solver.h
@@ -15,6 +15,7 @@
struct apk_change {
struct apk_package *oldpkg;
struct apk_package *newpkg;
+ unsigned short repository_tag;
};
APK_ARRAY(apk_change_array, struct apk_change);
@@ -25,7 +26,6 @@ struct apk_changeset {
#define APK_SOLVERF_UPGRADE 0x0001
#define APK_SOLVERF_AVAILABLE 0x0002
#define APK_SOLVERF_REINSTALL 0x0004
-#define APK_SOLVERF_PREFER_TAG 0x0008
void apk_solver_set_name_flags(struct apk_name *name,
unsigned short solver_flags,