lib/omnibus/fetchers/net_fetcher.rb in omnibus-4.1.0 vs lib/omnibus/fetchers/net_fetcher.rb in omnibus-5.0.0

- old
+ new

@@ -227,15 +227,19 @@ end # # The digest type defined in the software definition # + # @raise [ChecksumMissing] + # if the checksum does not exist + # # @return [Symbol] # def digest_type DIGESTS.each do |digest| return digest if source.key? digest end + raise ChecksumMissing.new(self) end # # Verify the downloaded file has the correct checksum.# #