Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add %g formatter for base64 signature

  • Loading branch information...
commit 40cd830cdd399ee9aac3a2ec7ab0b3c3c7225972 1 parent 5815335
Dave Reisner authored August 15, 2011

Showing 2 changed files with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 2  README.pod
  2. 5  expac.c
2  README.pod
Source Rendered
@@ -106,6 +106,8 @@ The format argument allows the following interpreted sequences:
106 106
 
107 107
   %f    filename (only with -S)
108 108
 
  109
+  %g    base64 encoded PGP signature (only with -S)
  110
+
109 111
   %i    has install scriptlet (only with -Q)
110 112
 
111 113
   %k    download size (only with -S)
5  expac.c
@@ -39,7 +39,7 @@
39 39
 #define DEFAULT_TIMEFMT      "%c"
40 40
 #define FORMAT_TOKENS        "BCDEGLNOPRSabdmnprsuvw%"
41 41
 #define FORMAT_TOKENS_LOCAL  "ilFw"
42  
-#define FORMAT_TOKENS_SYNC   "fk"
  42
+#define FORMAT_TOKENS_SYNC   "fgk"
43 43
 #define ESCAPE_TOKENS        "\"\\abefnrtv"
44 44
 
45 45
 #ifndef PATH_MAX
@@ -421,6 +421,9 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) {
421 421
         case '!': /* result number */
422 422
           out += printf("%d", pkgcounter++);
423 423
           break;
  424
+        case 'g': /* base64 gpg sig */
  425
+          out += printf(fmt, alpm_pkg_get_base64_sig(pkg));
  426
+          break;
424 427
 
425 428
         /* times */
426 429
         case 'b': /* build date */

0 notes on commit 40cd830

Please sign in to comment.
Something went wrong with that request. Please try again.