diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-01-13 10:37:30 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-01-13 10:39:06 +0200 |
commit | 2ea61da9d99a64aa0358b9186447310c98de9a77 (patch) | |
tree | 2543c5780eaeea41fa271b9ebd64c91aaf5546e7 /src/add.c | |
parent | 1f9a36de6828b87ba9d7dedcae2de6092eed4f41 (diff) | |
download | apk-tools-2ea61da9d99a64aa0358b9186447310c98de9a77.tar.gz apk-tools-2ea61da9d99a64aa0358b9186447310c98de9a77.tar.bz2 apk-tools-2ea61da9d99a64aa0358b9186447310c98de9a77.tar.xz apk-tools-2ea61da9d99a64aa0358b9186447310c98de9a77.zip |
add: make repository tag pinning stronger
Previously we would not upgrade just by doing "apk add foo@tag" if
foo was already installed. It required explicit '-u'. This allows
'apk add' to explicitly prefer the newly specified pinning.
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -127,7 +127,7 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv) if (virtpkg == NULL) { apk_deps_add(&world, &dep); apk_solver_set_name_flags(dep.name, - actx->solver_flags, + actx->solver_flags | APK_SOLVERF_PREFER_TAG, actx->solver_flags); } else { apk_deps_add(&virtpkg->depends, &dep); |