diff options
| author | Adam Vandenberg | 2010-07-29 09:14:52 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-07 18:08:53 -0700 |
| commit | b69d6dc4cf4c3caaa993cb0d2f4f87ca65d1c6e6 (patch) | |
| tree | 2eb40fff7e1ba0687c697d0cbc7ed32259977b61 /Library | |
| parent | 57bbeb3bd777719cd316fed86be70a5c25926370 (diff) | |
| download | brew-b69d6dc4cf4c3caaa993cb0d2f4f87ca65d1c6e6.tar.bz2 | |
Add sha1 to brew fetch and document command
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-fetch.rb | 4 | ||||
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/Library/Contributions/examples/brew-fetch.rb b/Library/Contributions/examples/brew-fetch.rb index 04573669f..2f7ddc6f8 100755 --- a/Library/Contributions/examples/brew-fetch.rb +++ b/Library/Contributions/examples/brew-fetch.rb @@ -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 diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 3df2ead6b..0ed592c1a 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -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 |
