Repository navigation
Fetch every secdb file on each sync - #4
Merged
Merged
Conversation
* Drop --mirror, which implies -N (timestamping). The checkout gives every file an mtime of "now", so wget only re-downloaded a file when its size changed and silently skipped same-size upstream changes. secdb/last-update had been stuck at 2026-08-20 for six weeks. * Use -r -l inf instead: the same recursion, but every file is fetched and overwritten on each run. The whole tree is about 5 MB. Signed-off-by: Aman Bansal <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3.
--mirrorimplies-N, and afteractions/checkoutevery file has an mtime of "now", so wget only re-downloaded a file when its byte size changed. Same-size upstream changes were skipped silently;secdb/last-updatehas been stuck at 2026-08-20 while upstream is at 2026-09-30.This swaps
--mirrorfor-r -l inf, which is the same recursion without timestamping, so every file is fetched and overwritten on each run. The whole tree is about 5 MB.Checked locally with wget 1.25 on a fresh clone: the old command leaves
last-updatestale andgit statusclean; the new command replaces it with the current upstream value, produces no extra files (noindex.html, no.1duplicates), and touches nothing else.If you would rather also pick up files removed upstream, the alternative is to delete
secdb/before the wget. Happy to switch to that instead.