-
Notifications
You must be signed in to change notification settings - Fork 6
download_sysext: fix passing XML data with --input-xml #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When --input-xml is on and --payload-url is off to pass XML data offline, we need to set payload_url to None and continue running the DownloadVerify builder instead of returning there. It is necessary to fix regressions of #87. Signed-off-by: Dongsu Park <[email protected]>
Since both `#[xml(child = "packages")]` and `#[xml(child = "actions"])` are not able to handle correct hierarchies of manifest (as parent) and packages and actions (as children), we need to define a separate structs for Packages that includes `Vec<Package>`, as well as `Actions` that includes `Vec<Action>`. Signed-off-by: Dongsu Park <[email protected]>
Pulls in flatcar/ue-rs#93. Signed-off-by: Dongsu Park <[email protected]>
james-parky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes regarding module naming in omaha, otherwise ok.
cf70b08 to
2f9ccb2
Compare
Since we need to support decoding of both hex and base64 formats, bring back base64 decoding functionality. Note, while hash_sha256 of Package has hex format, sha256 of Action has base64 format. That is the reason why we need to keep both mod sha256_from_hex_str and mod sha256_from_base64_str. Signed-off-by: Dongsu Park <[email protected]>
2f9ccb2 to
7b95cee
Compare
Pulls in flatcar/ue-rs#93. Signed-off-by: Dongsu Park <[email protected]>
|
Jenkins CI through flatcar/scripts#3425 passed. |
james-parky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
When --input-xml is on and --payload-url is off to pass XML data offline, we need to set payload_url to None and continue running the DownloadVerify builder instead of returning there. Pulls in flatcar/ue-rs#93. Signed-off-by: Dongsu Park <[email protected]>
When --input-xml is on and --payload-url is off to pass XML data offline, we need to set payload_url to None and continue running the DownloadVerify builder instead of returning there. Pulls in flatcar/ue-rs#93. Signed-off-by: Dongsu Park <[email protected]>
When --input-xml is on and --payload-url is off to pass XML data offline, we need to set payload_url to None and continue running the DownloadVerify builder instead of returning there.
It is necessary to fix regressions of #87.
Maybe fixes #92.
Testing done
local test passed.
CI http://jenkins.infra.kinvolk.io:8080/job/container/job/packages_all_arches/6861/cldsv/ passed.