set SOURCE_DATE_EPOCH to current time
to rebuild a version, the rebuilder can set this time manually
This commit is contained in:
parent
a415654c8a
commit
58c9bf971f
|
@ -149,6 +149,7 @@ BASEOUTDIR=$(realpath ${BASEOUTDIR:-"$CURDIR"})
|
|||
CRT=${CRT:-${NAME}.crt}
|
||||
REPOSD=${REPOSD:-/etc/yum.repos.d}
|
||||
STATEDIR=${STATEDIR:-"${BASEDIR}/${NAME}"}
|
||||
export SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:-$(date -u +'%s')}
|
||||
|
||||
readonly OLD_SELINUX=$(getenforce)
|
||||
|
||||
|
@ -304,12 +305,6 @@ if [[ $CHECK_UPDATE ]]; then
|
|||
exit $RET
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Record timestamp of last built package date
|
||||
export SOURCE_DATE_EPOCH=$(
|
||||
chroot "$sysroot" bash -c 'rpm -qa --qf "%{BUILDTIME}\n"' | sort -nr | head -1
|
||||
)
|
||||
|
||||
chroot "$sysroot" /usr/bin/systemd-sysusers
|
||||
|
||||
for i in passwd shadow group gshadow subuid subgid; do
|
||||
|
|
Loading…
Reference in a new issue