Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit c70aa78dcce8e2c2cc35eaa4315abc1039ed25d7 1 parent a89229e
@falconindy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  expac.c
2  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);
case 'R': /* replaces */
out += print_list(alpm_pkg_get_replaces(pkg), NULL, shortdeps);
Please sign in to comment.
Something went wrong with that request. Please try again.