diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2007-12-09 14:49:34 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-24 03:12:41 +0100 |
commit | 22c900e7d57bfa7c9ed482f888ef200c0289ceec (patch) | |
tree | dd797c831d8edfb2679b176ba431099039b8f3e9 /lib/libalpm/alpm.h | |
parent | 6b8f404a33b14ccb89f3adedf438f08b330a177a (diff) | |
download | pacman-22c900e7d57bfa7c9ed482f888ef200c0289ceec.tar.gz pacman-22c900e7d57bfa7c9ed482f888ef200c0289ceec.tar.xz |
Add new public alpm_checkdbconflicts function.
This function has a limited purpose, but might be interesting to do a
sanity check from a frontend (eg testdb).
Also removed the private _alpm_checkconflicts function to avoid confusion.
This function was used only once in libalpm, in sync.c, and was just a
single line anyway. Having to do it manually makes it explicit that we are
looking for two kind of conflicts (targ vs targ and db vs targ).
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r-- | lib/libalpm/alpm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 0d65cff4..4c2793ce 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -386,6 +386,8 @@ alpm_list_t *alpm_deptest(pmdb_t *db, alpm_list_t *targets); const char *alpm_miss_get_target(const pmdepmissing_t *miss); pmdepend_t *alpm_miss_get_dep(pmdepmissing_t *miss); +alpm_list_t *alpm_checkdbconflicts(pmdb_t *db_local); + const char *alpm_conflict_get_package1(pmconflict_t *conflict); const char *alpm_conflict_get_package2(pmconflict_t *conflict); |