diff options
Diffstat (limited to 'src/daemon/rpm.c')
-rw-r--r-- | src/daemon/rpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/rpm.c b/src/daemon/rpm.c index 1295211e..97b71e51 100644 --- a/src/daemon/rpm.c +++ b/src/daemon/rpm.c @@ -107,7 +107,7 @@ int rpm_chk_fingerprint(const char* pkg) if (!header) goto error; - pgpsig = headerFormat(header, "%{SIGGPG:pgpsig}", &errmsg); + pgpsig = headerFormat(header, "%|SIGGPG?{%{SIGGPG:pgpsig}}:{%{SIGPGP:pgpsig}}|", &errmsg); if (!pgpsig && errmsg) { VERB1 log("cannot get siggpg:pgpsig. reason: %s", errmsg); @@ -119,7 +119,7 @@ int rpm_chk_fingerprint(const char* pkg) if (pgpsig_tmp) { pgpsig_tmp += sizeof(" Key ID ") - 1; - ret = (g_list_find(list_fingerprints, pgpsig_tmp) != NULL); + ret = g_list_find_custom(list_fingerprints, pgpsig_tmp, (GCompareFunc)g_strcmp0) != NULL; } } |