From 2856a7dea3c0d4584e126b5ca5957e13e23f83d1 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 --- 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 07d2b4ae..e33ec7bd 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -223,8 +223,8 @@ int SYMEXPORT alpm_db_update(int force, alpm_db_t *db) size_t len; int sig_ret = 0; - /* 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-70-g09d2