From c70aa78dcce8e2c2cc35eaa4315abc1039ed25d7 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 8 Mar 2012 15:30:14 -0500 Subject: 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 --- expac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2