Add sha1 to brew fetch and document command
This commit is contained in:
parent
57bbeb3bd7
commit
b69d6dc4cf
@ -11,7 +11,7 @@ ARGV.formulae.each do |f|
|
||||
|
||||
the_tarball = f.downloader.fetch
|
||||
if the_tarball.kind_of? Pathname
|
||||
md5 = the_tarball.md5
|
||||
puts "MD5 is #{md5}"
|
||||
puts "MD5: #{the_tarball.md5}"
|
||||
puts "SHA1: #{the_tarball.sha1}"
|
||||
end
|
||||
end
|
||||
|
@ -28,7 +28,8 @@ didn't include with OS X.
|
||||
|
||||
* `--cache` [<formula>]:
|
||||
Displays the path Homebrew uses to cache downloads.
|
||||
If <formula> is given, display the file or folder used to cache that specific package.
|
||||
If <formula> is given, display the file or folder used to cache that
|
||||
specific package.
|
||||
|
||||
* `--config`:
|
||||
Shows Homebrew and system configuration useful for debugging. If you file
|
||||
@ -146,7 +147,12 @@ didn't include with OS X.
|
||||
cellar.
|
||||
|
||||
* `update`:
|
||||
Using Git, fetches the newest version of Homebrew from the GitHub repository.
|
||||
Using Git, fetches the newest version of Homebrew from the GitHub
|
||||
repository.
|
||||
|
||||
* `fetch` <formula>:
|
||||
Downloads the tarball or checks out from VCS for the given <formula>. For
|
||||
tarballs, also prints MD5 and SHA1 checksums.
|
||||
|
||||
## ENVIRONMENT
|
||||
|
||||
|
@ -161,6 +161,10 @@ For all installed or specific formulae, remove any older versions from the cella
|
||||
\fBupdate\fR
|
||||
Using Git, fetches the newest version of Homebrew from the GitHub repository\.
|
||||
.
|
||||
.TP
|
||||
\fBfetch\fR \fIformula\fR
|
||||
Downloads the tarball or checks out from VCS for the given \fIformula\fR\. For tarballs, also prints MD5 and SHA1 checksums\.
|
||||
.
|
||||
.SH "ENVIRONMENT"
|
||||
.
|
||||
.TP
|
||||
|
Loading…
x
Reference in New Issue
Block a user