99e8b983 | 04-Jun-2023 |
Jeremy Kerr <jk@codeconstruct.com.au> |
tools: fw-update: allow ISO 8610 date formats
Currently, the ReleaseDateTime data is expected to be in a "%d/%m/%Y %H:%M:%S" format.
However, this is ambiguous (ie., is locale-specific).
This chan
tools: fw-update: allow ISO 8610 date formats
Currently, the ReleaseDateTime data is expected to be in a "%d/%m/%Y %H:%M:%S" format.
However, this is ambiguous (ie., is locale-specific).
This change adds supoort to allow an ISO 8601 format of:
"%Y-%m-%dT%H:%M:%S"
and a relaxed version with the 'T' separator replaced with a space:
"%Y-%m-%d %H:%M:%S"
Update the readme and example json to switch to the preferred format.
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Change-Id: Ica3ae824979df6b666b8abb619ceaedffd90b374
show more ...
|
0d8224a6 | 12-Dec-2022 |
Chinmay Shripad Hegde <hosmanechinmay@gmail.com> |
fwupdate-tools: Add support for user specified ComponentComparisonStamp from metadata file.
Currently, ComponentComparisonStamp is not supported in metadata file and the value is hardcoded in the sc
fwupdate-tools: Add support for user specified ComponentComparisonStamp from metadata file.
Currently, ComponentComparisonStamp is not supported in metadata file and the value is hardcoded in the script. This change will enable to specify ComponentComparisonStamp in metadata file when ComponentOptions is set to 1.
Unit Tests: 1. ComponentOptions values other than 1. verify Default ComponentComparisonStamp used 2. ComponentOptions is 1 and component comparison stamp is missing, verify error message 3. ComponentOptions is 1, ComponentComparisonStamp provided in the metadata file. Verify the package with hexdump 4. Verify error messages for invalid value for ComponentComparisonStamp
Signed-off-by: Chinmay Shripad Hegde <hosmanechinmay@gmail.com> Change-Id: I772d30ebe5d80e2cdca365ad4025cca774db218d
show more ...
|