diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-18 22:34:28 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-18 22:34:28 +0200 |
commit | a7d779803239a1dca43a6879f3938c5e63811992 (patch) | |
tree | 319d321c2ce3cc1b66e92d5f8ed7d8e3c64c999c /lib | |
parent | f883efe2cb105a397edc0b892f5fa06c98f2208f (diff) | |
download | pacman-a7d779803239a1dca43a6879f3938c5e63811992.tar.gz pacman-a7d779803239a1dca43a6879f3938c5e63811992.tar.xz |
Fix build without gpgme
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/signing.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index b7e8c9a8..bcc91046 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -407,7 +407,7 @@ error: } #else 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; } @@ -537,7 +537,9 @@ int SYMEXPORT alpm_siglist_cleanup(alpm_siglist_t *siglist) for(num = 0; num < siglist->count; num++) { alpm_sigresult_t *result = siglist->results + num; if(result->key.data) { +#if HAVE_LIBGPGME gpgme_key_unref(result->key.data); +#endif } else { free(result->key.fingerprint); } |