Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authormorganamilo <morganamilo@gmail.com>2019-09-08 22:45:26 +0100
committerAllan McRae <allan@archlinux.org>2019-10-07 14:19:54 +1000
commit0a295f3f396b990e03ab8faec37566de85c99fec (patch)
tree8905d8b7ac238da8c11ca34e2959b7bc92609c1b /lib/libalpm
parent0e3a4bd1fbb740b6bfce2ceb3e6acdfe84a4d486 (diff)
libalpm: fix incorrect documentation
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/deps.c12
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