summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/signing.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index 0abf34f1..867e0a58 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -293,7 +293,13 @@ int _alpm_gpgme_checksig(const char *path, const char *base64_sig)
result = gpgme_op_verify_result(ctx);
gpgsig = result->signatures;
if(!gpgsig || gpgsig->next) {
- _alpm_log(PM_LOG_ERROR, _("Unexpected number of signatures\n"));
+ int count = 0;
+ while(gpgsig) {
+ count++;
+ gpgsig = gpgsig->next;
+ }
+ _alpm_log(PM_LOG_ERROR, _("Unexpected number of signatures (%d)\n"),
+ count);
ret = -1;
goto error;
}