aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-03-29 17:57:10 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-03-29 17:57:10 +0200
commit790dc3b999e52a44229e663632b19ed4502065db (patch)
tree4dd3f7a7432fd4f252130ba19f611f097214791d /lib
parent450740176e1652dfd7c4148d047ac64fb0ae0f34 (diff)
Use the already available epoch if no epoch.txt exists
Diffstat (limited to 'lib')
-rw-r--r--lib/actions/install.bash2
1 files changed, 1 insertions, 1 deletions
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")"