Skip to content

Commit

Permalink
Updating CPU exclusion list for Ruby SHA256 to include PPC 970
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmajs committed Oct 28, 2019
1 parent 4cce191 commit afeecee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/vendor-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fetch() {
then
sha="$(sha256sum "$CACHED_LOCATION" | cut -d' ' -f1)"
# Ruby 1.8.2's vendored Ruby has broken SHA256 calculation on several PowerPC CPUs
elif [[ -x "$(which ruby)" && "$cpu_family" != 9 && "$cpu_family" != 10 && "$cpu_family" != 11 ]]
elif [[ -x "$(which ruby)" && "$cpu_family" != 9 && "$cpu_family" != 10 && "$cpu_family" != 11 && "$cpu_family" != 100 ]]
then
sha="$(ruby -e "require 'digest/sha2'; digest = Digest::SHA256.new; File.open('$CACHED_LOCATION', 'rb') { |f| digest.update(f.read) }; puts digest.hexdigest")"
# Pure Perl SHA256 implementation
Expand Down

0 comments on commit afeecee

Please sign in to comment.