From 05a6726503c290f2f11a315ef23d079431d0bb57 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Fri, 4 Jul 2025 10:07:02 +0100 Subject: [PATCH] libalpm: edit docs for check_pgp_signature The old wording implied that the function would return -1 if the signature was invalid (alpm_sigresult_t->validity). When really it means if a correctly formatted signature exists at all. --- lib/libalpm/alpm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 96e5e643..cab3ef47 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -481,7 +481,7 @@ typedef struct _alpm_siglist_t { * Check the PGP signature for the given package file. * @param pkg the package to check * @param siglist a pointer to storage for signature results - * @return 0 if valid, -1 if an error occurred or signature is invalid + * @return 0 on success, -1 if an error occurred or signature is missing */ int alpm_pkg_check_pgp_signature(alpm_pkg_t *pkg, alpm_siglist_t *siglist); @@ -489,7 +489,7 @@ int alpm_pkg_check_pgp_signature(alpm_pkg_t *pkg, alpm_siglist_t *siglist); * Check the PGP signature for the given database. * @param db the database to check * @param siglist a pointer to storage for signature results - * @return 0 if valid, -1 if an error occurred or signature is invalid + * @return 0 on success, -1 if an error occurred or signature is missing */ int alpm_db_check_pgp_signature(alpm_db_t *db, alpm_siglist_t *siglist);