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
11 lines
332 B
Text
11 lines
332 B
Text
@ARGS
|
|
--test-repo provides.repo
|
|
add conflicted-provider
|
|
@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: world[conflicted-provider]
|