From fae6a2d2f8640cd7d618ddcf3f7b9bac13a833af Mon Sep 17 00:00:00 2001
From: akwizgran <michael@briarproject.org>
Date: Tue, 15 Aug 2023 14:24:52 +0100
Subject: [PATCH] Retry downloads 5 times.

---
 install.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install.sh b/install.sh
index 196ae32..0bc4fc3 100755
--- a/install.sh
+++ b/install.sh
@@ -12,6 +12,10 @@ EOF
 # ignore expired package releases (they expire too fast)
 echo 'Acquire::Check-Valid-Until "0";' >> /etc/apt/apt.conf.d/10-ignore-expiry
 
+# increase number of retries (default is 3), as connections to
+# snapshot.debian.org often fail
+echo 'Acquire::Retries "5";' >> /etc/apt/apt.conf.d/80-retries
+
 # do not install documentation to keep image small
 echo "path-exclude=/usr/share/locale/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
 echo "path-exclude=/usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
-- 
GitLab