Permalink
Browse files

fix %S and %P formatters

  • Loading branch information...
1 parent 88b6976 commit d64d0381f285bdf86951e3d4decc95bec5bfc21f @falconindy committed May 10, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 expac.c
View
@@ -537,10 +537,11 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) {
out += print_list(alpm_pkg_get_conflicts(pkg), NULL, shortdeps);
break;
case 'S': /* provides (shortdeps) */
- shortdeps = true;
- case 'P': /* provides */
out += print_list(alpm_pkg_get_provides(pkg), (extractfn)alpm_dep_get_name, shortdeps);
break;
+ case 'P': /* provides */
+ out += print_list(alpm_pkg_get_provides(pkg), (extractfn)alpm_dep_compute_string, shortdeps);
+ break;
case 'R': /* replaces */
out += print_list(alpm_pkg_get_replaces(pkg), NULL, shortdeps);
break;

0 comments on commit d64d038

Please sign in to comment.