From 3b013f458225c2ad8a0d96ec3eb3dde2533e0312 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Thu, 24 Feb 2022 14:15:28 +0200 Subject: solver: do not auto select virtual-only package with one provider This reverts most of 0dcbd933 which allowed automatic selection of package with a "virtual provides" having only one provider. While convenient, it creates problems if multiple versions of the same package exist, or if in future other providers would be added to one of the repositories. This restore the original behaviour, and improve the error message to tell the user to mention one of the providers explicitly. fixes #10810 --- test/provides11.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/provides11.test') diff --git a/test/provides11.test b/test/provides11.test index 54c6b34..c48c33c 100644 --- a/test/provides11.test +++ b/test/provides11.test @@ -5,6 +5,8 @@ add conflicted-parent @EXPECT ERROR: unable to select packages: conflicted-provider (virtual): + note: please select one of the 'provided by' + packages explicitly provided by: conflicted-provider-a conflicted-provider-b required by: conflicted-dep-0.1[conflicted-provider] -- cgit v1.2.3-70-g09d2