diff options
author | Timo Teräs <timo.teras@iki.fi> | 2022-12-20 14:57:51 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2022-12-20 15:37:04 +0200 |
commit | f000c8f77eccf60b11d9911f95935da1c8adb287 (patch) | |
tree | 1c828d11fd37c903d8e11d5e20a7edd79dcb37be /test | |
parent | a4536470d371fa19881d669baa218e4cf8bc2155 (diff) | |
download | apk-tools-f000c8f77eccf60b11d9911f95935da1c8adb287.tar.gz apk-tools-f000c8f77eccf60b11d9911f95935da1c8adb287.tar.bz2 apk-tools-f000c8f77eccf60b11d9911f95935da1c8adb287.tar.xz apk-tools-f000c8f77eccf60b11d9911f95935da1c8adb287.zip |
commit: correctly analyze virtual provides induced errors
The package list cannot be used to determine name state,
as packages are not selected through all of their names,
and that effects the status of unversioned provides.
Thus the name state must be calculated in separate step
via the dependency graphs.
ref #10847
Diffstat (limited to 'test')
-rw-r--r-- | test/provides.repo | 15 | ||||
-rw-r--r-- | test/provides14.test | 10 | ||||
-rw-r--r-- | test/provides15.test | 7 |
3 files changed, 32 insertions, 0 deletions
diff --git a/test/provides.repo b/test/provides.repo index ed72f72..75ede8c 100644 --- a/test/provides.repo +++ b/test/provides.repo @@ -133,3 +133,18 @@ S:1 I:1 k:1 p:pulseaudio=1 pulseaudio-alsa=1 + +C:Q1FAFBeAhWPV1oiuybW+TSjrUghxU= +P:sane-backends +V:1 +S:1 +I:1 + +C:Q1FAFBeAhWPV1asdfoW+TSjrUghxU= +P:sane-backend-hpaio +V:1 +S:1 +I:1 +i:sane-backends +p:hplip-sane + diff --git a/test/provides14.test b/test/provides14.test new file mode 100644 index 0000000..37cc4a4 --- /dev/null +++ b/test/provides14.test @@ -0,0 +1,10 @@ +@ARGS +--test-repo provides.repo +add hplip-sane sane-backends +@EXPECT +ERROR: unable to select packages: + hplip-sane (virtual): + note: please select one of the 'provided by' + packages explicitly + provided by: sane-backend-hpaio + required by: world[hplip-sane] diff --git a/test/provides15.test b/test/provides15.test new file mode 100644 index 0000000..62f8534 --- /dev/null +++ b/test/provides15.test @@ -0,0 +1,7 @@ +@ARGS +--test-repo provides.repo +add hplip-sane sane-backend-hpaio sane-backends nonexistent +@EXPECT +ERROR: unable to select packages: + nonexistent (no such package): + required by: world[nonexistent] |