summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-16 11:45:54 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-16 11:45:54 +0200
commit53f8a36c1f621b5d53cb921bbda6ff0b2ecc756a (patch)
treeaf831844df669e95094b4136c6204a23759c8b01 /src
parent0800d7e050b738e7faa848291d6021175b853e29 (diff)
downloadapk-tools-53f8a36c1f621b5d53cb921bbda6ff0b2ecc756a.tar.gz
apk-tools-53f8a36c1f621b5d53cb921bbda6ff0b2ecc756a.tar.bz2
apk-tools-53f8a36c1f621b5d53cb921bbda6ff0b2ecc756a.tar.xz
apk-tools-53f8a36c1f621b5d53cb921bbda6ff0b2ecc756a.zip
solver: fix allowed pinning calculation
Diffstat (limited to 'src')
-rw-r--r--src/solver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solver.c b/src/solver.c
index d7a8f63..a12de28 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -414,7 +414,7 @@ static int get_preference(struct apk_solver_state *ss,
preferred_pinning = ns->preferred_pinning ?: APK_DEFAULT_PINNING_MASK;
preferred_repos = get_pinning_mask_repos(ss->db, preferred_pinning);
- allowed_pinning = ns->allowed_pinning | ns->preferred_pinning | APK_DEFAULT_PINNING_MASK;
+ allowed_pinning = ns->allowed_pinning | preferred_pinning;
if (preferred_pinning != allowed_pinning)
allowed_repos = get_pinning_mask_repos(ss->db, allowed_pinning);
else
@@ -474,7 +474,7 @@ static int update_name_state(struct apk_solver_state *ss, struct apk_name *name)
preferred_pinning = ns->preferred_pinning ?: APK_DEFAULT_PINNING_MASK;
preferred_repos = get_pinning_mask_repos(ss->db, preferred_pinning);
- allowed_pinning = ns->allowed_pinning | ns->preferred_pinning | APK_DEFAULT_PINNING_MASK;
+ allowed_pinning = ns->allowed_pinning | preferred_pinning;
if (preferred_pinning != allowed_pinning)
allowed_repos = get_pinning_mask_repos(ss->db, allowed_pinning);
else