1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/lib/libalpm
Xavier Chantry 4097c98c1e Add interactive provider selection
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.

If one of the provider is already installed, it is picked for
reinstall/upgrade, so that provision 002/003 pactest now pass.

$ 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@gmail.com>
2011-01-29 19:33:15 +01:00
..
po Merge branch 'maint' 2011-01-29 12:16:11 -06:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Remove need for floating point division in backend 2011-01-10 10:49:55 -06:00
add.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
alpm_list.c Use size_t for alpm_list sizes 2011-01-07 21:15:46 -06:00
alpm_list.h Use size_t for alpm_list sizes 2011-01-07 21:15:46 -06:00
alpm.c Remove need to explicitly register the local DB 2011-01-29 12:13:56 -06:00
alpm.h Add interactive provider selection 2011-01-29 19:33:15 +01:00
backup.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
backup.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
be_local.c Remove need to explicitly register the local DB 2011-01-29 12:13:56 -06:00
be_package.c Ignore known but unused package descfile fields 2011-01-28 17:34:06 -06:00
be_sync.c Fix memory leak and error code in DB reading 2011-01-24 21:46:42 -06:00
conflict.c Remove need for floating point division in backend 2011-01-10 10:49:55 -06:00
conflict.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
db.c Remove need to explicitly register the local DB 2011-01-29 12:13:56 -06:00
db.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
delta.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
delta.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
deps.c Add interactive provider selection 2011-01-29 19:33:15 +01:00
deps.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
diskspace.c Call archive_read_data_skip() while checking diskspace 2011-01-11 21:15:24 -06:00
diskspace.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
dload.c Fix some more simple conversion "errors" 2011-01-07 21:15:47 -06:00
dload.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
error.c Unify two free diskspace error messages 2011-01-11 21:15:24 -06:00
graph.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
group.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
group.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
handle.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
handle.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
log.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
log.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
Makefile.am Prototype disk space checking functionality 2010-12-12 20:29:37 -06:00
md5.c libalpm md5: use larger and dynamic buffer 2010-09-02 10:33:21 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Remove epoch as an independent field 2011-01-21 19:30:45 -06:00
package.h Remove epoch as an independent field 2011-01-21 19:30:45 -06:00
remove.c Fix double filelist issue when upgrading a package 2011-01-11 21:16:39 -06:00
remove.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
sync.c Compute download size for sync packages only 2011-01-22 11:11:29 -06:00
sync.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
trans.c Update copyright years for 2011 2011-01-07 18:47:37 -06:00
trans.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
util.c Improve splitname memory allocation 2011-01-21 09:14:47 -06:00
util.h Add strndup fallback function to libalpm util 2011-01-21 09:14:47 -06:00
version.c Allow version comparison to contain epoch specifier 2011-01-21 19:30:45 -06:00