summaryrefslogtreecommitdiff
path: root/test/basic18.test
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2022-12-25 14:57:47 +0200
committerTimo Teräs <timo.teras@iki.fi>2022-12-25 14:59:57 +0200
commit067c17312418937b6fc81cbba78349ce2566f942 (patch)
treecbdc79c459dad6284a213460e0e2896c3a1527ff /test/basic18.test
parenta7f5996e2fc2b4ec00d40f3ae53a56cb6d8dbca0 (diff)
downloadapk-tools-067c17312418937b6fc81cbba78349ce2566f942.tar.gz
apk-tools-067c17312418937b6fc81cbba78349ce2566f942.tar.bz2
apk-tools-067c17312418937b6fc81cbba78349ce2566f942.tar.xz
apk-tools-067c17312418937b6fc81cbba78349ce2566f942.zip
solver: prioritize user specified action on mentioned packages
Force preference on the user specified action on commandline. This allows upgrading packages which would otherwise be kept back due to partial update preferring to keep top level dependency on the installed version. fixes #7531
Diffstat (limited to 'test/basic18.test')
-rw-r--r--test/basic18.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/basic18.test b/test/basic18.test
new file mode 100644
index 0000000..ff8d6b8
--- /dev/null
+++ b/test/basic18.test
@@ -0,0 +1,9 @@
+@ARGS
+--test-repo basic17.repo
+--test-instdb basic17.installed
+--test-world a
+add --latest b
+@EXPECT
+(1/2) Upgrading b (1 -> 2)
+(2/2) Upgrading a (1 -> 2)
+OK: 0 MiB in 2 packages