file_path = get_file_from_cache(filename, pkg_checksum, pkg_size, loc)
if file_path.nil? then
- if not FileDownLoader.download(url, loc, @log) then
+ file_path = File.join(loc, filename)
+
+ result = FileDownLoader.download(url, loc, @log)
+ if not result or not File.exist? file_path then
@log.error "File Download Failed!!"
@log.error "* #{url} -> #{loc}"
return nil
end
- file_path = File.join(loc, filename)
if validatePkgFile(file_path, pkg_checksum, pkg_size) then
add_file_to_cache(file_path)
else