diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-05-10 09:59:38 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-05-10 09:59:51 -0400 |
commit | d64d0381f285bdf86951e3d4decc95bec5bfc21f (patch) | |
tree | de4cf8cb82c8d63d28fae6b2d4dfc8cbe373b415 | |
parent | 88b69766b103a633e95965a50cb6b9eaa6491a60 (diff) | |
download | expac-d64d0381f285bdf86951e3d4decc95bec5bfc21f.tar.xz |
fix %S and %P formatters
-rw-r--r-- | expac.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |