diff options
author | Timo Teräs <timo.teras@iki.fi> | 2022-12-25 14:57:47 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2022-12-25 14:59:57 +0200 |
commit | 067c17312418937b6fc81cbba78349ce2566f942 (patch) | |
tree | cbdc79c459dad6284a213460e0e2896c3a1527ff /test | |
parent | a7f5996e2fc2b4ec00d40f3ae53a56cb6d8dbca0 (diff) | |
download | apk-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')
-rw-r--r-- | test/basic17.installed | 13 | ||||
-rw-r--r-- | test/basic17.repo | 26 | ||||
-rw-r--r-- | test/basic17.test | 9 | ||||
-rw-r--r-- | test/basic18.test | 9 |
4 files changed, 57 insertions, 0 deletions
diff --git a/test/basic17.installed b/test/basic17.installed new file mode 100644 index 0000000..ce66f47 --- /dev/null +++ b/test/basic17.installed @@ -0,0 +1,13 @@ +C:Q1EyN5AdpAOBJWKMR89pp/C66o+OE= +P:a +V:1 +S:1 +I:1 +D:b=1 + +C:Q1C4uoV7SdMdDhYg4OCVmI71D8HIA= +P:b +V:1 +S:1 +I:1 + diff --git a/test/basic17.repo b/test/basic17.repo new file mode 100644 index 0000000..cac8d9e --- /dev/null +++ b/test/basic17.repo @@ -0,0 +1,26 @@ +C:Q1EyN5AdpAOBJWKMR89pp/C66o+OE= +P:a +V:1 +S:1 +I:1 +D:b=1 + +C:Q1eVpkasfqZAukAXFYbgwt4xAMZWU= +P:a +V:2 +S:1 +I:1 +D:b=2 + +C:Q1C4uoV7SdMdDhYg4OCVmI71D8HIA= +P:b +V:1 +S:1 +I:1 + +C:Q1hdUpqRv5mYgJEqW52UmVsvmyysE= +P:b +V:2 +S:1 +I:1 + diff --git a/test/basic17.test b/test/basic17.test new file mode 100644 index 0000000..3d0b7fc --- /dev/null +++ b/test/basic17.test @@ -0,0 +1,9 @@ +@ARGS +--test-repo basic17.repo +--test-instdb basic17.installed +--test-world b +add --upgrade a +@EXPECT +(1/2) Upgrading b (1 -> 2) +(2/2) Upgrading a (1 -> 2) +OK: 0 MiB in 2 packages 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 |