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

feat: validate gz files #232

Merged
merged 2 commits into from
Dec 21, 2024
Merged

feat: validate gz files #232

merged 2 commits into from
Dec 21, 2024

Conversation

jeremylong
Copy link
Owner

resolves #230

refflinghaus added a commit to refflinghaus/Open-Vulnerability-Project that referenced this pull request Dec 9, 2024
…ror.sh script

Refactor the cache validation process to check each gzip file individually. If a corrupt file is detected, the script now provides the specific filename before clearing the cache and rerunning the mirror process. This change enhances error reporting and prevents unnecessary cache clearing.
refflinghaus added a commit to refflinghaus/Open-Vulnerability-Project that referenced this pull request Dec 9, 2024
…or script

Replaced the find command with a for loop for gz file validation. This enhances readability and efficiency by directly iterating over the target files. The change ensures corrupt gz files are detected and handled as before.
* #230 & #232 Improve cache validation logic in mirror.sh script

Refactor the cache validation process to check each gzip file individually. If a corrupt file is detected, the script now provides the specific filename before clearing the cache and rerunning the mirror process. This change enhances error reporting and prevents unnecessary cache clearing.

* #230 & #232 Simplify file validation loop in mirror script

Replaced the find command with a for loop for gz file validation. This enhances readability and efficiency by directly iterating over the target files. The change ensures corrupt gz files are detected and handled as before.
@jeremylong jeremylong merged commit a86b8fa into main Dec 21, 2024
2 checks passed
@jeremylong jeremylong deleted the scratch/validate branch December 21, 2024 14:19
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.

corrupted gz in the cache
2 participants