Skip to content

Commit bc31037

Browse files
committed
Make gpgme log more verbosely
1 parent a6caef6 commit bc31037

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/appimagetool_sign.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,12 @@ bool sign_appimage(char* appimage_filename, char* key_id, bool verbose) {
349349

350350
gpg_check_call(gpgme_new(&gpgme_ctx));
351351

352+
if (verbose) {
353+
// this should significantly increase the amount of logging we see in the status callback
354+
fprintf(stderr, "[sign] running in verbose mode, enabling full-status flag on gpgme context\n");
355+
gpg_check_call(gpgme_set_ctx_flag(gpgme_ctx, "full-status", "1"));
356+
}
357+
352358
// we want an ASCII armored signature of plain text (hex string)
353359
gpgme_set_textmode(gpgme_ctx, true);
354360
gpgme_set_armor(gpgme_ctx, true);

0 commit comments

Comments
 (0)