1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-09 13:07:58 -05:00

Fix build without gpgme

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-09-18 15:34:28 -05:00
parent f883efe2cb
commit a7d7798032

View File

@ -407,7 +407,7 @@ error:
} }
#else #else
int _alpm_gpgme_checksig(alpm_handle_t UNUSED *handle, const char UNUSED *path, int _alpm_gpgme_checksig(alpm_handle_t UNUSED *handle, const char UNUSED *path,
const char UNUSED *base64_sig, alpm_sigresult_t UNUSED *result) const char UNUSED *base64_sig, alpm_siglist_t UNUSED *siglist)
{ {
return -1; return -1;
} }
@ -537,7 +537,9 @@ int SYMEXPORT alpm_siglist_cleanup(alpm_siglist_t *siglist)
for(num = 0; num < siglist->count; num++) { for(num = 0; num < siglist->count; num++) {
alpm_sigresult_t *result = siglist->results + num; alpm_sigresult_t *result = siglist->results + num;
if(result->key.data) { if(result->key.data) {
#if HAVE_LIBGPGME
gpgme_key_unref(result->key.data); gpgme_key_unref(result->key.data);
#endif
} else { } else {
free(result->key.fingerprint); free(result->key.fingerprint);
} }