diff options
author | Allan McRae <allan@archlinux.org> | 2013-10-16 04:23:11 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-31 07:20:02 +0100 |
commit | 23923200c3e34563c8124a1b098bc0866f4e92e5 (patch) | |
tree | ef9d697b9e0cd1e0d2bd1365cb5f844a8eea02d1 /lib/libalpm/deps.c | |
parent | d4ba5bdda6595db83babbac1c59fac129fcaff24 (diff) | |
download | pacman-23923200c3e34563c8124a1b098bc0866f4e92e5.tar.gz pacman-23923200c3e34563c8124a1b098bc0866f4e92e5.tar.xz |
Expose alpm_pkg_should_ignore
This function is useful for frontends to annotate package upgrades
that will be ignored.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r-- | lib/libalpm/deps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 745eac17..cf7605ee 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -664,7 +664,7 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, pkg = _alpm_db_get_pkgfromcache(db, dep->name); if(pkg && _alpm_depcmp_literal(pkg, dep) && !alpm_pkg_find(excluding, pkg->name)) { - if(_alpm_pkg_should_ignore(handle, pkg)) { + if(alpm_pkg_should_ignore(handle, pkg)) { int install = 0; if(prompt) { QUESTION(handle, ALPM_QUESTION_INSTALL_IGNOREPKG, pkg, @@ -693,7 +693,7 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, * possibly be the same string */ if(pkg->name_hash != dep->name_hash && _alpm_depcmp(pkg, dep) && !alpm_pkg_find(excluding, pkg->name)) { - if(_alpm_pkg_should_ignore(handle, pkg)) { + if(alpm_pkg_should_ignore(handle, pkg)) { int install = 0; if(prompt) { QUESTION(handle, ALPM_QUESTION_INSTALL_IGNOREPKG, |