Permalink
Browse files

add %g formatter for base64 signature

  • Loading branch information...
1 parent 5815335 commit 40cd830cdd399ee9aac3a2ec7ab0b3c3c7225972 @falconindy committed Aug 16, 2011
Showing with 6 additions and 1 deletion.
  1. +2 −0 README.pod
  2. +4 −1 expac.c
View
@@ -106,6 +106,8 @@ The format argument allows the following interpreted sequences:
%f filename (only with -S)
+ %g base64 encoded PGP signature (only with -S)
+
%i has install scriptlet (only with -Q)
%k download size (only with -S)
View
@@ -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 */

0 comments on commit 40cd830

Please sign in to comment.