mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 02:56:18 +00:00
Merge pull request #340 from bmwiedemann/date
Allow to override build date with SOURCE_DATE_EPOCH
This commit is contained in:
commit
7412b98774
@ -170,7 +170,7 @@ create_summary_file()
|
|||||||
local -r filename="osbuilder.yaml"
|
local -r filename="osbuilder.yaml"
|
||||||
local file="${dir}/${filename}"
|
local file="${dir}/${filename}"
|
||||||
|
|
||||||
local -r now=$(date '+%Y-%m-%dT%T.%N%zZ')
|
local -r now=$(date -u -d@${SOURCE_DATE_EPOCH:-$(date +%s.%N)} '+%Y-%m-%dT%T.%N%zZ')
|
||||||
|
|
||||||
# sanitise package lists
|
# sanitise package lists
|
||||||
PACKAGES=$(echo "$PACKAGES"|tr ' ' '\n'|sort -u|tr '\n' ' ')
|
PACKAGES=$(echo "$PACKAGES"|tr ' ' '\n'|sort -u|tr '\n' ' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user