-
Notifications
You must be signed in to change notification settings - Fork 5
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
Explicit error for compressed Artifacts #84
Explicit error for compressed Artifacts #84
Conversation
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.
🚀
a0fed4f
to
7b5d156
Compare
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.
Looks good to me otherwise.
@@ -204,6 +221,12 @@ mender_artifact_process_data(mender_artifact_ctx_t *ctx, | |||
/* Parse data */ | |||
do { | |||
|
|||
/* We do not support compressed artifacts */ | |||
if (is_compressed(ctx->file.name)) { |
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.
Is this derived from the URL?
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.
The file name? That comes from the payload
Ticket: MEN-7528 Signed-off-by: Daniel Skinstad Drabitzius <[email protected]>
Avoids division by zero errors if you're e.g. using a really small dummy artifact Ticket: None Signed-off-by: Daniel Skinstad Drabitzius <[email protected]>
7b5d156
to
1f0ef87
Compare
if (((index * 10) / size) > download_progress) { | ||
download_progress = (index * 10) / size; | ||
mender_log_info("Downloading '%s' %zu0%%... [%zu/%zu]", type, download_progress, index, size); | ||
if (size > 0) { |
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.
Thanks
No description provided.