diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-20 16:00:46 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-20 16:00:46 +0100 |
commit | 10b7da4b0f00b930c7bdff6034549030c667e585 (patch) | |
tree | 192c89b3beee32d6af2eb661412151b435247499 | |
parent | b1b3c980374009b745adaa0f864f9afdf1a2df96 (diff) | |
download | expac-pkgbase.tar.xz |
Add %e format specifier for printing the pkgbasepkgbase
-rw-r--r-- | expac.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -453,6 +453,9 @@ static void print_pkg(alpm_pkg_t *pkg, const char *format) case 'n': /* package name */ out += printf(fmt, alpm_pkg_get_name(pkg)); break; + case 'e': /* package base */ + out += printf(fmt, alpm_pkg_get_base(pkg)); + break; case 'v': /* version */ out += printf(fmt, alpm_pkg_get_version(pkg)); break; |