Function alpm_sys::alpm_find_dbs_satisfier
source · pub unsafe extern "C" fn alpm_find_dbs_satisfier(
handle: *mut alpm_handle_t,
dbs: *mut alpm_list_t,
depstring: *const c_char
) -> *mut alpm_pkg_t
Expand description
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 satisfyer 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 satisfyer will be searched @param depstring package or provision name, versioned or not @return a alpm_pkg_t* satisfying depstring