summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.h
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-10-14 11:28:25 +0200
committerDan McGee <dan@archlinux.org>2011-01-31 17:49:39 +0100
commitb6ec9019d77c41edd86094a867fbb3970c6b4ebe (patch)
tree819da7c24c6044f92d2110d2bc834f5388cc17f4 /lib/libalpm/deps.h
parentb8d01dace84a379d9104ae35f98c94b96103b6bc (diff)
downloadpacman-b6ec9019d77c41edd86094a867fbb3970c6b4ebe.tar.gz
pacman-b6ec9019d77c41edd86094a867fbb3970c6b4ebe.tar.xz
alpm/depcmp: new NODEPVERSION flag
This flag allows to disable version checking in dependency resolving code. depcmp_tolerant respects the NODEPVERSION flag but we still keep the original strict depcmp. The idea is to reduce the impact of the NODEPVERSION flag by using it in fewer places. I replaced almost all depcmp calls by depcmp_tolerant in deps.c (except in the public find_satisfier used by deptest / pacman -T), but I kept depcmp in sync.c and conflict.c Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.h')
-rw-r--r--lib/libalpm/deps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h
index bd5e9a4c..86070ab4 100644
--- a/lib/libalpm/deps.h
+++ b/lib/libalpm/deps.h
@@ -57,6 +57,7 @@ int _alpm_dep_edge(pmpkg_t *pkg1, pmpkg_t *pkg2);
pmdepend_t *_alpm_splitdep(const char *depstring);
pmpkg_t *_alpm_find_dep_satisfier(alpm_list_t *pkgs, pmdepend_t *dep);
int _alpm_depcmp(pmpkg_t *pkg, pmdepend_t *dep);
+int _alpm_depcmp_tolerant(pmpkg_t *pkg, pmdepend_t *dep);
#endif /* _ALPM_DEPS_H */