From 04fa4bc9c08b90325a6ad587f11c6e2d64d805d5 Mon Sep 17 00:00:00 2001 From: "Gerd v. Egidy" Date: Fri, 16 Dec 2022 22:22:45 +0100 Subject: [PATCH] Wrap downloads by pacman in another faketime call to cancel the one in "pacman-faketime" Without this second faketime call the TLS certificate validity times will pose a problem when downloading from https mirrors. Hopefully fixes #313 for good. --- airootfs/etc/pacman-snapshot.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/airootfs/etc/pacman-snapshot.conf b/airootfs/etc/pacman-snapshot.conf index 086410e..9a0a36d 100644 --- a/airootfs/etc/pacman-snapshot.conf +++ b/airootfs/etc/pacman-snapshot.conf @@ -18,6 +18,12 @@ HoldPkg = pacman glibc #XferCommand = /usr/bin/curl -C - -f %u > %o #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u + +# wrap downloading in a faketime call that uses the real "today" as date +# this is to counter the faketime date introduced when running "pacman-faketime" +# necessary to deal with TLS certificate lifetimes +XferCommand = /usr/bin/faketime "today" /usr/bin/curl --continue-at - --output "%o" --fail --location "%u" + #CleanMethod = KeepInstalled #UseDelta = 0.7 Architecture = auto