diff --git a/configure.ac b/configure.ac index d8a46ba..64fe693 100644 --- a/configure.ac +++ b/configure.ac @@ -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 >= 10.0.0]) +PKG_CHECK_MODULES([alpm], [libalpm >= 11.0.0]) AC_CHECK_LIB([yajl], [yajl_free], , AC_MSG_ERROR([yajl is needed to compile package-query])) diff --git a/doc/package-query.8 b/doc/package-query.8 index 370a393..509682d 100644 --- a/doc/package-query.8 +++ b/doc/package-query.8 @@ -247,7 +247,7 @@ Format can contain: %a: architecture %b: base package %B: backups file -%c: check dependencies (AUR) +%c: check dependencies (AUR and local package tarball) %C: conflicts with %d: description %D: depends on diff --git a/src/alpm-query.c b/src/alpm-query.c index fc31ead..edd5dcf 100644 --- a/src/alpm-query.c +++ b/src/alpm-query.c @@ -559,6 +559,13 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c) info = concat_backup_list (alpm_pkg_get_backup (pkg)); free_info = true; break; + case 'c': + if (alpm_pkg_get_origin (pkg) != ALPM_PKG_FROM_FILE) { + return NULL; + } + info = concat_dep_list (alpm_pkg_get_checkdepends (pkg)); + free_info = true; + break; case 'C': info = concat_dep_list (alpm_pkg_get_conflicts (pkg)); free_info = true;