diff options
author | Paul Spooren <mail@aparcar.org> | 2021-08-28 17:10:57 -1000 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2022-02-14 14:40:34 +0100 |
commit | 2120cad38d6f78cc1b727459eeedb6ed9a14edbe (patch) | |
tree | 71352f952b3e8f4649501c7006a4351f06d90f7c /scripts | |
parent | ebe0b2af65c27b96cd0db9533cb63feda5a581f6 (diff) | |
download | upstream-2120cad38d6f78cc1b727459eeedb6ed9a14edbe.tar.gz upstream-2120cad38d6f78cc1b727459eeedb6ed9a14edbe.tar.bz2 upstream-2120cad38d6f78cc1b727459eeedb6ed9a14edbe.zip |
build: store source_date_epoch as integer
The value is retreived from a env variable which defaults to be read as
a string. However the SOURCE_DATE_EPOCH is a unix timestamp aka integer.
Fix this to allow downstream tools to parse the value directly.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/json_add_image_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/json_add_image_info.py b/scripts/json_add_image_info.py index 23033f9fc4..4608996f02 100755 --- a/scripts/json_add_image_info.py +++ b/scripts/json_add_image_info.py @@ -44,7 +44,7 @@ file_info = { "target": "{}/{}".format(getenv("TARGET"), getenv("SUBTARGET")), "version_code": getenv("VERSION_CODE"), "version_number": getenv("VERSION_NUMBER"), - "source_date_epoch": getenv("SOURCE_DATE_EPOCH"), + "source_date_epoch": int(getenv("SOURCE_DATE_EPOCH")), "profiles": { device_id: { "image_prefix": getenv("DEVICE_IMG_PREFIX"), |