Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
120985e2
Commit
120985e2
authored
7 years ago
by
Misty De Meo
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2684 from mistydemeo/add_vendored_sha256
Add vendored sha256
parents
90c97162
587f338d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/cmd/vendor-install.sh
+9
-0
9 additions, 0 deletions
Library/Homebrew/cmd/vendor-install.sh
Library/Homebrew/extend/pathname.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/extend/pathname.rb
with
10 additions
and
1 deletion
Library/Homebrew/cmd/vendor-install.sh
+
9
−
0
View file @
120985e2
...
...
@@ -82,6 +82,15 @@ fetch() {
elif
[[
-x
"
$(
which
sha256sum
)
"
]]
then
sha
=
"
$(
sha256sum
"
$CACHED_LOCATION
"
|
cut
-d
' '
-f1
)
"
elif
[[
-x
"
$(
which ruby
)
"
]]
then
sha
=
"
$(
ruby
<<
EOSCRIPT
require 'digest/sha2'
digest = Digest::SHA256.new
File.open('
$CACHED_LOCATION
', 'rb') { |f| digest.update(f.read) }
puts digest.hexdigest
EOSCRIPT
)
"
else
odie
"Cannot verify the checksum ('shasum' or 'sha256sum' not found)!"
fi
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/extend/pathname.rb
+
1
−
1
View file @
120985e2
...
...
@@ -322,7 +322,7 @@ class Pathname
def
sha256
require
"digest/sha2"
incremental_hash
(
Digest
::
SHA2
)
incremental_hash
(
Digest
::
SHA2
56
)
end
def
verify_checksum
(
expected
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment