summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-11-12 11:38:55 -0500
committerDave Reisner <dreisner@archlinux.org>2013-11-12 11:38:55 -0500
commit2341af0ef934f0bf4d2fcd8201234a5dbd61347c (patch)
tree8b966d4f3c82ad899c1953d0f01301def8444071
parentc860104cdeaf9329c176bfd53fcd2c8370009546 (diff)
downloadexpac-2341af0ef934f0bf4d2fcd8201234a5dbd61347c.tar.xz
disable database and package signature verification
This is a job for pacman. No need to replicate it in expac. People (rightfully) complain about gpgme sucking ass and hanging on verification. I can't replicate this behavior, but it doesn't surprise me, and I'm not wasting my time to figure out why. For extra credit, maybe I can convince people to stop blindly signing and trusting random 3rd party keys.
-rw-r--r--expac.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/expac.c b/expac.c
index fcb0909..ae3ef6d 100644
--- a/expac.c
+++ b/expac.c
@@ -188,8 +188,7 @@ static alpm_handle_t *alpm_init(void) {
section[strlen(section) - 1] = '\0';
if (strcmp(section, "options") != 0) {
- alpm_register_syncdb(handle, section,
- ALPM_SIG_DATABASE | ALPM_SIG_DATABASE_OPTIONAL);
+ alpm_register_syncdb(handle, section, 0);
}
}
}
@@ -746,8 +745,7 @@ int main(int argc, char *argv[]) {
alpm_pkg_t *pkg;
int err;
- err = alpm_pkg_load(handle, i->data, 0,
- ALPM_SIG_PACKAGE|ALPM_SIG_PACKAGE_OPTIONAL, &pkg);
+ err = alpm_pkg_load(handle, i->data, 0, 0, &pkg);
if (err) {
fprintf(stderr, "error: %s: %s\n", (const char*)i->data,
alpm_strerror(alpm_errno(handle)));