Finish test condition for _get_file() and test unsafe download

This commit is contained in:
Vladimir Diaz 2017-08-29 16:35:18 -04:00
parent 6aa8854e07
commit c5125e4dd3
No known key found for this signature in database
GPG key ID: 5DEE9B97B0E2289A

View file

@ -1579,7 +1579,11 @@ def verify_target_file(targets_path):
self.repository_updater._hard_check_file_length(targets_path, file_size)
self.repository_updater._check_hashes(targets_path, file_hashes)
self.repository_updater._get_file('targets.json', verify_target_file,
file_type, file_size, download_safely=True)
self.repository_updater._get_file('targets.json', verify_target_file,
file_type, file_size, download_safely=False)