diff options
author | morganamilo <morganamilo@gmail.com> | 2019-09-08 23:45:26 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-10-07 06:19:54 +0200 |
commit | 0a295f3f396b990e03ab8faec37566de85c99fec (patch) | |
tree | 8905d8b7ac238da8c11ca34e2959b7bc92609c1b /lib/libalpm | |
parent | 0e3a4bd1fbb740b6bfce2ceb3e6acdfe84a4d486 (diff) | |
download | pacman-0a295f3f396b990e03ab8faec37566de85c99fec.tar.gz pacman-0a295f3f396b990e03ab8faec37566de85c99fec.tar.xz |
libalpm: fix incorrect documentation
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/deps.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 6f923b2e..322c4e7e 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -643,10 +643,9 @@ int _alpm_recursedeps(alpm_db_t *db, alpm_list_t **targs, int include_explicit) * @param dep is the dependency to search for * @param dbs are the databases to search * @param excluding are the packages to exclude from the search - * @param prompt if true, will cause an unresolvable dependency to issue an - * interactive prompt asking whether the package should be removed from - * the transaction or the transaction aborted; if false, simply returns - * an error code without prompting + * @param prompt if true, ask an alpm_question_install_ignorepkg_t to decide + * if ignored packages should be installed; if false, skip ignored + * packages. * @return the resolved package **/ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, @@ -767,8 +766,11 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, /** Find a package satisfying a specified dependency. * First look for a literal, going through each db one by one. Then look for - * providers. The first satisfier found is returned. + * providers. The first satisfier that belongs to an installed package is + * returned. If no providers belong to an installed package then an + * alpm_question_select_provider_t is created to select the provider. * The dependency can include versions with depmod operators. + * * @param handle the context handle * @param dbs an alpm_list_t* of alpm_db_t where the satisfier will be searched * @param depstring package or provision name, versioned or not |