diff options
author | Xavier Chantry <chantry.xavier@gmail.com> | 2010-10-17 00:52:13 +0200 |
---|---|---|
committer | Xavier Chantry <chantry.xavier@gmail.com> | 2011-01-29 19:33:15 +0100 |
commit | b8590ed634babc060b35e2ad7a035347234d836a (patch) | |
tree | e7afdb7b971a836f62a08be01cae8d6959e216d3 /lib/libalpm/alpm.h | |
parent | 4097c98c1ee65d6b3a659d042c6c84e0632673bf (diff) | |
download | pacman-b8590ed634babc060b35e2ad7a035347234d836a.tar.gz pacman-b8590ed634babc060b35e2ad7a035347234d836a.tar.xz |
alpm/dep: add alpm_find_dbs_satisfier
This is a public interface for resolvedep. It looks nicer to expose it
this way rather than through sync_target.
This function can also be helpful for external tools as it should give
good results close to how pacman select a package for satisfying a given
dep.
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r-- | lib/libalpm/alpm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 6724bf78..e33aab24 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -439,6 +439,7 @@ typedef enum _pmdepmod_t { alpm_list_t *alpm_checkdeps(alpm_list_t *pkglist, int reversedeps, alpm_list_t *remove, alpm_list_t *upgrade); pmpkg_t *alpm_find_satisfier(alpm_list_t *pkgs, const char *depstring); +pmpkg_t *alpm_find_dbs_satisfier(alpm_list_t *dbs, const char *depstring); const char *alpm_miss_get_target(const pmdepmissing_t *miss); pmdepend_t *alpm_miss_get_dep(pmdepmissing_t *miss); |