From 54ca7fbfe099d2dc1736f5a7f585a7da38a358e0 Mon Sep 17 00:00:00 2001
From: akwizgran <michael@briarproject.org>
Date: Tue, 15 Nov 2022 17:25:05 +0000
Subject: [PATCH] Ignore expired package releases.

---
 install.sh | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/install.sh b/install.sh
index dd3504b..dc582c5 100755
--- a/install.sh
+++ b/install.sh
@@ -9,11 +9,8 @@ deb http://snapshot.debian.org/archive/debian/${DATE}/ bullseye main
 deb http://snapshot.debian.org/archive/debian/${DATE}/ bullseye-updates main
 EOF
 
-# ignore expired package releases if env variable is set
-if [[ "${IGNORE_EXPIRY}" = "1" ]]
-then
-    echo 'Acquire::Check-Valid-Until "0";' >> /etc/apt/apt.conf.d/10-ignore-expiry
-fi
+# ignore expired package releases so we can reproduce from old snapshots
+echo 'Acquire::Check-Valid-Until "0";' >> /etc/apt/apt.conf.d/10-ignore-expiry
 
 # update package sources
 apt-get update
-- 
GitLab