From 7faa79526874c09fc89fb769744d103bc4918e17 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 19 Jan 2020 09:30:54 +1000 Subject: Increase maximum database size We previously has the maximum database size as 25MB. This was set in the days before repos had as many packages as they do now, and before we started distributing files databases. Increase this limit to 128MB. Signed-off-by: Allan McRae (cherry picked from commit 2856a7dea3c0d4584e126b5ca5957e13e23f83d1) --- lib/libalpm/be_sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 2c76fe83..db93309e 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -225,8 +225,8 @@ int SYMEXPORT alpm_db_update(int force, alpm_db_t *db) memset(&payload, 0, sizeof(struct dload_payload)); - /* set hard upper limit of 25MiB */ - payload.max_size = 25 * 1024 * 1024; + /* set hard upper limit of 128MiB */ + payload.max_size = 128 * 1024 * 1024; /* print server + filename into a buffer */ len = strlen(server) + strlen(db->treename) + strlen(dbext) + 2; -- cgit v1.2.3-24-g4f1b