Two issues have snuck in that prevent the compile from working.

Signed-off-by: Dan McGee <[email protected]>
---

This and the rest of the patches available on my 'random-fixes' branch.

 lib/libalpm/sync.c   | 2 +-
 src/pacman/package.c | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index e358585..9531fa2 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -1225,7 +1225,7 @@ int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t 
**data)
                return -1;
        }
 
-#if HAVE_LIBGPGME
+#ifdef HAVE_LIBGPGME
        /* make sure all required signatures are in keyring */
        if(check_keyring(handle)) {
                return -1;
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 52219ff..c44696b 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -193,6 +193,10 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
        }
 
        if(from == ALPM_PKG_FROM_SYNCDB && extra) {
+               string_display(_("MD5 Sum        :"), alpm_pkg_get_md5sum(pkg), 
cols);
+               string_display(_("SHA-256 Sum    :"), 
alpm_pkg_get_sha256sum(pkg), cols);
+
+#ifdef HAVE_LIBGPGME
                const char *base64_sig = alpm_pkg_get_base64_sig(pkg);
                alpm_list_t *keys = NULL;
                if(base64_sig) {
@@ -204,10 +208,8 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
                } else {
                        keys = alpm_list_add(keys, _("None"));
                }
-
-               string_display(_("MD5 Sum        :"), alpm_pkg_get_md5sum(pkg), 
cols);
-               string_display(_("SHA-256 Sum    :"), 
alpm_pkg_get_sha256sum(pkg), cols);
                list_display(_("Signatures     :"), keys, cols);
+#endif
        } else {
                list_display(_("Validated By   :"), validation, cols);
        }
-- 
1.8.5.2


Reply via email to