From 790dc3b999e52a44229e663632b19ed4502065db Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sun, 29 Mar 2020 17:57:10 +0200 Subject: Use the already available epoch if no epoch.txt exists --- lib/actions/install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/install.bash b/lib/actions/install.bash index 0295fb1..c4603ba 100644 --- a/lib/actions/install.bash +++ b/lib/actions/install.bash @@ -15,7 +15,6 @@ RSTAR_DEPS_PERL+=( action() { local LC_ALL local OPTIND - local SOURCE_DATE_EPOCH local duration local init local prefix_absolute @@ -34,6 +33,7 @@ action() { # Prepare environment for a reproducible install LC_ALL=C.UTF-8 + # Distribution tarballs come with an epoch set, use it if you find it. if [[ -f "$BASEDIR/etc/epoch.txt" ]] then SOURCE_DATE_EPOCH="$(head -n1 "$BASEDIR/etc/epoch.txt")" -- cgit v1.1