From d64d0381f285bdf86951e3d4decc95bec5bfc21f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 10 May 2012 09:59:38 -0400 Subject: fix %S and %P formatters --- expac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/expac.c b/expac.c index 059a9d6..eee5fbc 100644 --- a/expac.c +++ b/expac.c @@ -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; -- cgit v1.2.3-70-g09d2