forked from bryanrossUK/puppet-wget
-
-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
From the README:
This caches the downloaded file in an intermediate directory to avoid repeatedly downloading it. This uses the timestamping (-N) and prefix (-P) wget options to only re-download if the source file has been updated.
wget::fetch { 'https://tool.com/downloads/tool-1.0.tgz': destination => '/tmp/', cache_dir => '/var/cache/wget', }
But if you specify cache_dir it actually keeps downloading the file over and over again.
This was introduced in commit back in 2015 from @mirthy (023ed15):
if $redownload == true or $cache_dir != undef {
Ref: #L62
Is this for any particular reason? Apparently using cache_dir is the only way to set additional parameters on our files such as mode so we prefer to remove the $cache_dir != undef.
I don't mind raising a pull request for it but I wonder what we may break. Can someone shed a light on this perhaps?
Metadata
Metadata
Assignees
Labels
No labels