Skip to content
Snippets Groups Projects
Commit 2120cad3 authored by Paul Spooren's avatar Paul Spooren
Browse files

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: default avatarPaul Spooren <mail@aparcar.org>
parent ebe0b2af
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ file_info = { ...@@ -44,7 +44,7 @@ file_info = {
"target": "{}/{}".format(getenv("TARGET"), getenv("SUBTARGET")), "target": "{}/{}".format(getenv("TARGET"), getenv("SUBTARGET")),
"version_code": getenv("VERSION_CODE"), "version_code": getenv("VERSION_CODE"),
"version_number": getenv("VERSION_NUMBER"), "version_number": getenv("VERSION_NUMBER"),
"source_date_epoch": getenv("SOURCE_DATE_EPOCH"), "source_date_epoch": int(getenv("SOURCE_DATE_EPOCH")),
"profiles": { "profiles": {
device_id: { device_id: {
"image_prefix": getenv("DEVICE_IMG_PREFIX"), "image_prefix": getenv("DEVICE_IMG_PREFIX"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment