summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-06-18 08:03:40 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-06-18 08:03:40 +0300
commit01ec60f718c388f620598c39bdc0816a0dbe09ac (patch)
tree0d3f482967c0453ee240185c2cda41e411616675 /test
parent54509e7a1a33923569848ce69c6e7f94fc6a021b (diff)
downloadapk-tools-01ec60f718c388f620598c39bdc0816a0dbe09ac.tar.bz2
apk-tools-01ec60f718c388f620598c39bdc0816a0dbe09ac.tar.xz
errors: improve analysis for virtual packages
if all packages named N provide the virtual package, list only the name N instead of all packages providing it.
Diffstat (limited to 'test')
-rw-r--r--test/provides.repo6
-rw-r--r--test/provides2.test2
2 files changed, 7 insertions, 1 deletions
diff --git a/test/provides.repo b/test/provides.repo
index a3dfec4..6418f18 100644
--- a/test/provides.repo
+++ b/test/provides.repo
@@ -26,6 +26,12 @@ S:1
I:1
D:so:foo.so.2
+C:Q1EyN5AdpAOBJWKMR89ppC66EEEEj=
+P:mymailreader
+V:0.1
+S:1
+I:1
+
C:Q1EyN5AdpAOBJWKMR89pp/C66FFFF=
P:mymailreader
V:1
diff --git a/test/provides2.test b/test/provides2.test
index 9d3a2e4..37fc9d8 100644
--- a/test/provides2.test
+++ b/test/provides2.test
@@ -4,5 +4,5 @@ add mail-reader
@EXPECT
ERROR: unsatisfiable constraints:
mail-reader (virtual):
- provided by: mymailreader-1 mailreadplus-1
+ provided by: mymailreader-1 mailreadplus
required by: world[mail-reader]