diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-03-08 15:30:14 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-03-08 15:30:14 -0500 |
commit | c70aa78dcce8e2c2cc35eaa4315abc1039ed25d7 (patch) | |
tree | 090b82b7fad3b4fcaeca9d9c276109fcfb66e163 /expac.c | |
parent | a89229eee1a2439b9dcd0ab292e917e78e712a17 (diff) | |
download | expac-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
Diffstat (limited to 'expac.c')
-rw-r--r-- | expac.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |