From ab3f6a151d1dac8788cacbfbd708e7f2600fdf5b Mon Sep 17 00:00:00 2001 From: Igor Date: Wed, 23 Oct 2019 09:56:17 -0400 Subject: [PATCH] Release 1.10 Since pacman 5.2.0 changed the API, bump libalpm dependency to 12.0.0. --- configure.ac | 4 ++-- src/alpm-query.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 64fe693..468a550 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.69) -AC_INIT([package-query], [1.9], [https://github.com/archlinuxfr/package-query]) +AC_INIT([package-query], [1.10], [https://github.com/archlinuxfr/package-query]) AM_INIT_AUTOMAKE([-Wall]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([src/package-query.c]) @@ -18,7 +18,7 @@ AC_CHECK_HEADERS([ctype.h getopt.h glob.h libintl.h limits.h locale.h regex.h si AC_CHECK_LIB([alpm], [alpm_version], , AC_MSG_ERROR([pacman is needed to compile package-query])) -PKG_CHECK_MODULES([alpm], [libalpm >= 11.0.0]) +PKG_CHECK_MODULES([alpm], [libalpm >= 12.0.0]) AC_CHECK_LIB([yajl], [yajl_free], , AC_MSG_ERROR([yajl is needed to compile package-query])) diff --git a/src/alpm-query.c b/src/alpm-query.c index 7684b3f..be0301a 100644 --- a/src/alpm-query.c +++ b/src/alpm-query.c @@ -253,7 +253,7 @@ static bool filter (alpm_pkg_t *pkg, unsigned int _filter) } } } - if ((_filter & F_UPGRADES) && !alpm_sync_newversion (pkg, alpm_get_syncdbs(config.handle))) + if ((_filter & F_UPGRADES) && !alpm_sync_get_new_version (pkg, alpm_get_syncdbs(config.handle))) return false; if ((_filter & F_GROUP) && !alpm_pkg_get_groups (pkg)) return false;