summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-20 16:00:46 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-20 16:00:46 +0100
commit10b7da4b0f00b930c7bdff6034549030c667e585 (patch)
tree192c89b3beee32d6af2eb661412151b435247499
parentb1b3c980374009b745adaa0f864f9afdf1a2df96 (diff)
downloadexpac-10b7da4b0f00b930c7bdff6034549030c667e585.tar.xz
Add %e format specifier for printing the pkgbasepkgbase
-rw-r--r--expac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/expac.c b/expac.c
index a87f0e0..92a61f3 100644
--- a/expac.c
+++ b/expac.c
@@ -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;