summaryrefslogtreecommitdiffstats
path: root/expac.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-10 09:59:38 -0400
committerDave Reisner <dreisner@archlinux.org>2012-05-10 09:59:51 -0400
commitd64d0381f285bdf86951e3d4decc95bec5bfc21f (patch)
treede4cf8cb82c8d63d28fae6b2d4dfc8cbe373b415 /expac.c
parent88b69766b103a633e95965a50cb6b9eaa6491a60 (diff)
downloadexpac-d64d0381f285bdf86951e3d4decc95bec5bfc21f.tar.xz
fix %S and %P formatters
Diffstat (limited to 'expac.c')
-rw-r--r--expac.c5
1 files 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;