gunnarx / franca_install_automation

Private repo NOT CURRENTLY SUPPORTED - I recommend to refer to (http://github.com/genivi/eclipse_install_automation). Scripted installation of Eclipse+Franca Tools on a machine, or creation of a new Virtual Machine image. Please read README.md for instructions on which branch to use and known bugs.
Mozilla Public License 2.0
5 stars 4 forks source link

Improve MD5 check #40

Open gunnarx opened 8 years ago

gunnarx commented 8 years ago

The code around download and MD5 check has grown and is quite messy. It could use a rewrite.

It would be much better to make use of standard .md5 files - if such a file exists with the same base filename and the checksum matches, the file should be considered OK. If it doesn't then no consistency checking is possible, and appropriate action should be done - either download again, or try to use the file that was found anyway.

A collection of such MD5 files could be provided by the project itself instead of being hidden inside of CONFIG file.

If an MD5 file can be downloaded from the file source, we can decide to also trust it and store it for next run.