Skip to content
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

refactor(url-lib): write curl output directly to file #1894

Merged
merged 1 commit into from Aug 12, 2022

Conversation

dtardon
Copy link
Contributor

@dtardon dtardon commented Aug 8, 2022

This pull request makes curl write directly to a file instead of using redirection via stdout. The redirection was originally added in 5c27446 to workaround https://bugzilla.redhat.com/show_bug.cgi?id=989133 (curl would create no file if the source was empty), but I don't see that problem with current curl.

A nice side-effect of this change is that curl shows download progress.

Checklist

  • I have tested it locally
  • I have reviewed and updated any documentation if relevant
  • I am providing new code and test(s) for it

The redirection to stdout was originally added to workaround
https://bugzilla.redhat.com/show_bug.cgi?id=989133 (curl would create no
file if the source was empty), but I don't see that problem with current
curl.

A nice side-effect of this change is that curl shows download progress.
@github-actions github-actions bot added modules Issue tracker for all modules url-lib Issues related to the url-lib module labels Aug 8, 2022
Copy link
Collaborator

@johannbg johannbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johannbg johannbg merged commit 1343d21 into dracutdevs:master Aug 12, 2022
28 checks passed
@dtardon dtardon deleted the curl-output branch August 14, 2022 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules Issue tracker for all modules url-lib Issues related to the url-lib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants