summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-03-08 15:30:14 -0500
committerDave Reisner <dreisner@archlinux.org>2012-03-08 15:30:14 -0500
commitc70aa78dcce8e2c2cc35eaa4315abc1039ed25d7 (patch)
tree090b82b7fad3b4fcaeca9d9c276109fcfb66e163
parenta89229eee1a2439b9dcd0ab292e917e78e712a17 (diff)
downloadexpac-c70aa78dcce8e2c2cc35eaa4315abc1039ed25d7.tar.xz
fix provides handler
alpm_pkg_get_provides() returns a list of alpm_depend_t structs, not straight up strings. reuse a helper function to extract the name member of this struct just like we do with %D
-rw-r--r--expac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expac.c b/expac.c
index 392abab..db64b9d 100644
--- a/expac.c
+++ b/expac.c
@@ -538,7 +538,7 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) {
case 'S': /* provides (shortdeps) */
shortdeps = true;
case 'P': /* provides */
- out += print_list(alpm_pkg_get_provides(pkg), NULL, shortdeps);
+ out += print_list(alpm_pkg_get_provides(pkg), (extractfn)alpm_dep_get_name, shortdeps);
break;
case 'R': /* replaces */
out += print_list(alpm_pkg_get_replaces(pkg), NULL, shortdeps);