[elbe-devel] [PATCH] elbepack: rpcaptcache: explicitly configure retries

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Oct 9 15:54:47 CEST 2024


Before version 2.3.2 / bookworm apt would not do any retries by default
on download errors. Configure the retries explicitly to make sure that
they are always used and they are done sufficiently.
The default number of '10' matches debootstrap and the max delay matches
the default of newer apt version.

Reported-by: John Ogness <jogness at linutronix.de>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/rpcaptcache.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elbepack/rpcaptcache.py b/elbepack/rpcaptcache.py
index b89b4b6deee6fcf71c4a1f28f46553d4d7c54e24..50d839135b4c7fa42e87e8f09755078a14625a8d 100644
--- a/elbepack/rpcaptcache.py
+++ b/elbepack/rpcaptcache.py
@@ -80,6 +80,10 @@ class RPCAPTCache(InChRootObject):
         else:
             config.set('APT::Get::AllowUnauthenticated', '0')
 
+        config.set('Acquire::Retries', '10')
+        config.set('Acquire::Retries::Delay', 'true')
+        config.set('Acquire::Retries::Delay::Maximum', '30')
+
         self.cache = Cache(progress=ElbeOpProgress())
         self.cache.open(progress=ElbeOpProgress())
 

---
base-commit: fd48f02889d0de2714489df27f43429dbe86260d
change-id: 20241009-rpcaptcache-retry-208745137c44

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list