From 10b7da4b0f00b930c7bdff6034549030c667e585 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 20 Dec 2014 16:00:46 +0100 Subject: Add %e format specifier for printing the pkgbase --- expac.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3-70-g09d2