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

sogrep: fail if links database cannot be retrieved #86

Closed
wants to merge 1 commit into from

Conversation

hexchain
Copy link
Contributor

@hexchain hexchain commented Feb 2, 2022

If the links database (for some reason) does not exist on the mirror, curl will save the html 404 page as ${repo}.links.tar.gz in the cache, and sogrep will later fail with a decompression error from bsdtar.

This patch adds -f to curl so it doesn't save the error page, and exit after displaying an error in such case.

@archlinux-github
Copy link

This project is a read-only mirror of: https://gitlab.archlinux.org/archlinux/devtools, please submit your work there.

This comment was generated by github-pull-closer.

@hexchain hexchain deleted the curl-fail branch February 3, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants