diff options
author | Yuta Saito <[email protected]> | 2025-02-12 11:43:05 +0000 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-02-13 15:35:31 +0900 |
commit | d35cc0cc772b48c5aaba354e7084278da68f44e4 (patch) | |
tree | a93f8d7191f1a3b0079fa10e7cc631cde933bb7d /vm_method.c | |
parent | 45397f828449498696899b416b7dfcd91ca82455 (diff) |
tool/downloader.rb: Stop caching already existing files
Previously, the script was caching any file already present in the
destination directory, regardless of its origin. This caused issues
when the directory contained files copied from external sources like
`autoreconf --install`.
For example:
1. `./autogen.sh --install` copies `config.guess` and `config.sub`
from the system to `./tool`.
2. `ruby tool/downloader.rb -d tool -e gnu config.guess config.sub`
treats those files as if they were downloaded and caches them.
3. Removing the files: `rm tool/config.guess tool/config.sub`.
4. Running the downloader again, it mistakenly restores the cached
files instead of downloading fresh versions.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12738
Diffstat (limited to 'vm_method.c')
0 files changed, 0 insertions, 0 deletions