aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs11
1 files changed, 10 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 5919eca..ebc0370 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3402,7 +3402,15 @@ Urpm_verify_signature(filename)
*result = '\0';
switch(rc) {
case RPMRC_OK:
- snprintf(result, sizeof(result), "OK");
+ {
+ char *fmtsig = headerSprintf(
+ h,
+ "%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:"
+ "{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|",
+ rpmTagTable, rpmHeaderFormats, NULL);
+ snprintf(result, sizeof(result), "OK (%s)", fmtsig);
+ free(fmtsig);
+ }
break;
case RPMRC_NOTFOUND:
snprintf(result, sizeof(result), "NOT OK (signature not found): %s", rpmErrorString());
@@ -3418,6 +3426,7 @@ Urpm_verify_signature(filename)
break;
}
RETVAL = result;
+ if (h) headerFree(h);
rpmtsFree(ts);
}