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:
./autogen.sh --install copies config.guess and config.sub
from the system to ./tool.
ruby tool/downloader.rb -d tool -e gnu config.guess config.sub
treats those files as if they were downloaded and caches them.
Removing the files: rm tool/config.guess tool/config.sub.
Running the downloader again, it mistakenly restores the cached
files instead of downloading fresh versions.
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:
./autogen.sh --install
copiesconfig.guess
andconfig.sub
from the system to
./tool
.ruby tool/downloader.rb -d tool -e gnu config.guess config.sub
treats those files as if they were downloaded and caches them.
rm tool/config.guess tool/config.sub
.files instead of downloading fresh versions.