Re: [PATCH setup v2] Query the user if a corrupt local file is found

2018-01-09 Thread Ken Brown
On 1/9/2018 5:25 PM, Ken Brown wrote: Also reorganize package validation. Move the size-validation code in download.cc and the hash-validation code in install.cc into new member functions of the packagesource class. Add a bool member 'validated' to the class to make sure that the checking is do

[PATCH setup v2] Query the user if a corrupt local file is found

2018-01-09 Thread Ken Brown
Also reorganize package validation. Move the size-validation code in download.cc and the hash-validation code in install.cc into new member functions of the packagesource class. Add a bool member 'validated' to the class to make sure that the checking is done only once. Change download.cc:check_