summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-18 20:30:28 -0500
committerDan McGee <dan@archlinux.org>2011-07-18 21:06:24 -0500
commit05f7c0280e31d25e0b9b5c5cca349eb93e24f04f (patch)
treeaa23c8a2d774c1ec1a68b2ea94d1c4849336de4f /lib/libalpm/be_sync.c
parentf1d25ba2dd2640054b8e2e1c7c39669abb0cc6e8 (diff)
downloadpacman-05f7c0280e31d25e0b9b5c5cca349eb93e24f04f.tar.xz
Fix test suite when GPGME is disabled
As noted by Allan, we failed pretty hard if gpgme was compiled out. With these changes, only sign001.py fails. This can/will be fixed later once we beef up the test suite with more signing tests anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index d7e14ba3..daed01f9 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -600,6 +600,14 @@ alpm_db_t *_alpm_db_register_sync(alpm_handle_t *handle, const char *treename,
_alpm_log(handle, ALPM_LOG_DEBUG, "registering sync database '%s'\n", treename);
+ _alpm_log(handle, ALPM_LOG_DEBUG, "spot 3\n");
+#ifndef HAVE_LIBGPGME
+ _alpm_log(handle, ALPM_LOG_DEBUG, "spot 2\n");
+ if(level != 0 && level != ALPM_SIG_USE_DEFAULT) {
+ RET_ERR(handle, ALPM_ERR_WRONG_ARGS, NULL);
+ }
+#endif
+
db = _alpm_db_new(treename, 0);
if(db == NULL) {
RET_ERR(handle, ALPM_ERR_DB_CREATE, NULL);