Commit Graph
18 Commits
Author SHA1 Message Date
Jack Nagel 15ced99fd3 Refactor fetch
Remove direct references to checksum types, access them through the
Checksum::TYPES constant instead.
2013-02-01 22:17:46 -06:00
Jack Nagel 41980bdfdf Replace usages of recursive_deps with recursive_dependencies 2013-01-26 12:14:49 -06:00
Mike McQuaid c67b120509 brew-fetch: remove MD5 output. 2013-01-26 12:48:00 +00:00
Mike McQuaid 8f6081b906 brew-fetch: Return error code on unmatched hash. 2012-09-03 11:20:07 -07:00
Jack Nagel ed975b1280 fetch: remove dead code
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 10:47:57 -05:00
Jack Nagel 96f396c9d4 fetch: use new checksum verification
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04 22:47:34 -05:00
Jack Nagel 23c074206b fetch: make use of new formula specs 2012-07-04 22:47:33 -05:00
Jack Nagel f66238ba13 fetch: don't display cached location twice
The download strategy will print the cached location if we've already
fetched it, so avoid printing redundant information.

Also just "puts" it instead of using a second `ohai` line.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-02 21:04:30 -05:00
Adam Vandenberg e307054cf8 brew fetch: show downloaded path 2012-03-21 09:09:11 -07:00
Mike McQuaid d2ad0d0232 Use fetch for downloading bottles.
Fixes #10958.
2012-03-18 15:16:57 +13:00
Jack Nagel cc56f44cb8 fetch: compare checksums case-insensitively
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-15 22:34:48 -06:00
Jack Nagel bc14dcf976 Warn the user of required arguments
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-04 00:27:05 -06:00
Jack Nagel 5792367b28 fetch: use correct sha256 instance variable
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-09 15:56:15 -05:00
Charlie Sharpsteen efcdbd691e mirror support: Add mirror method to Formula.rb
Mirrors can now be declared using the `mirror` method which works similar to
`depends_on` and takes the same arguments as `url`.

The formula class now has a public `fetch` method that cycles through the
mirror list if the downloader for the primary URL throws a `DownloadError`.
Other brew commands, like brew-fetch, also benefit from mirror support by using
this method.

Closes #7574.
2011-09-19 09:24:43 -07:00
Jack Nagel 75a6e29d97 fetch: fix '--force' for pathnames
`brew fetch --force` was a no-op for formula pathnames when that formula
did not exist in Library/Formula, because `brew --cache #{f.name}`
results in an error for that case.

Fix it by always using f.cached_download.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-01 19:17:13 -05:00
Birger J. Nordølum 528c4d9152 Added SHA-256 to the fetch command.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-14 15:43:58 -07:00
Adam Vandenberg dda2d6988a Add brew fetch --deps
`brew fetch --deps` will also cache the dependencies of any listed formulae.
2011-04-14 15:09:15 -07:00
Adam Vandenberg fb85fbc6b6 'brew fetch' now an official command 2011-03-12 11:55:11 -08:00