Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.5.6
-
Fix Version/s: 0.6.0
-
Component/s: Chef Server
-
Labels:None
Description
A side effect would be that we wouldn't have to download it again either if the hash compared right.
I'm working on a patchset now.
This is fixed in my
CHEF-230branch (ctennis/chef.git).I added a checksum feature to remote_file. If you have something like this:
remote_file "/usr/foo.txt"
source "http://blah.com/foo.txt"
checksum "03d300e9"
end
If foo.txt is already on disk and you supplied a checksum (the sha256, or a partial in this case) it will do a comparison and not download the file again if it matches.