[pacman-dev] [PATCH] Add interactive provider selection

Allan McRae allan at archlinux.org
Thu Nov 4 11:00:43 CET 2010


On 20/10/10 05:10, Xavier Chantry wrote:
> If there are multiple providers in one db, pacman used to just stop at
> the first one (both during dependency resolution or for pacman -S
> 'provision' which uses the same code).
>
> This adds a new conversation callback so that the user can choose which
> provider to install. By default (user press enter or --noconfirm), the
> first provider is still chosen, so for example the behavior of sync402
> and 403 is preserved. But at least the user now has the possibility to
> make the right choice in a manual run.
>
> $ pacman -S community/smtp-server
> :: There are 3 providers available for smtp-server:
>     1) courier-mta  2) esmtp  3) exim
>
> Which one do you want to install?
> Enter a number (default=1):
>
> Signed-off-by: Xavier Chantry<chantry.xavier at gmail.com>


I like the idea, but does this not work cross repos?

allan at mugen /home/arch/code/pacman (xavier)
 > sudo src/pacman/pacman -S java-runtime
resolving dependencies...
looking for inter-conflicts...

Targets (2): ca-certificates-java-20100412-1  openjdk6-6.b20_1.9.1-1

Total Download Size:    0.00 MB
Total Installed Size:   121.53 MB

Proceed with installation? [Y/n]


I get no choice between openjdk6 and jre with that.

Allan


More information about the pacman-dev mailing list