diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-08-15 20:48:25 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-08-17 15:22:33 -0400 |
commit | 40cd830cdd399ee9aac3a2ec7ab0b3c3c7225972 (patch) | |
tree | cf1632725dc081932c2e31c79ade593585d171e9 /expac.c | |
parent | 5815335293456381b70ddbd4fdffed8819b3f0c5 (diff) | |
download | expac-40cd830cdd399ee9aac3a2ec7ab0b3c3c7225972.tar.xz |
add %g formatter for base64 signature
Diffstat (limited to 'expac.c')
-rw-r--r-- | expac.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -39,7 +39,7 @@ #define DEFAULT_TIMEFMT "%c" #define FORMAT_TOKENS "BCDEGLNOPRSabdmnprsuvw%" #define FORMAT_TOKENS_LOCAL "ilFw" -#define FORMAT_TOKENS_SYNC "fk" +#define FORMAT_TOKENS_SYNC "fgk" #define ESCAPE_TOKENS "\"\\abefnrtv" #ifndef PATH_MAX @@ -421,6 +421,9 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) { case '!': /* result number */ out += printf("%d", pkgcounter++); break; + case 'g': /* base64 gpg sig */ + out += printf(fmt, alpm_pkg_get_base64_sig(pkg)); + break; /* times */ case 'b': /* build date */ |