Skip to content

Commit

Permalink
Add %e format specifier for printing the pkgbase
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
kyrias authored and falconindy committed Feb 1, 2016
1 parent ba3b6a2 commit e629dec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.pod
Expand Up @@ -124,6 +124,8 @@ The format argument allows the following interpreted sequences:

%d description

%e package base

%f filename (only with -S)

%g base64 encoded PGP signature (only with -S)
Expand Down
3 changes: 3 additions & 0 deletions expac.c
Expand Up @@ -452,6 +452,9 @@ static void print_pkg(alpm_pkg_t *pkg, const char *format)
case 'f': /* filename */
out += printf(fmt, alpm_pkg_get_filename(pkg));
break;
case 'e': /* package base */
out += printf(fmt, alpm_pkg_get_base(pkg));
break;
case 'n': /* package name */
out += printf(fmt, alpm_pkg_get_name(pkg));
break;
Expand Down

0 comments on commit e629dec

Please sign in to comment.