aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/fetch.rb
AgeCommit message (Collapse)Author
2013-05-16Formula#fetch: always return the cached pathJack Nagel
This allows us to remove some type checks that were protecting against potential nils.
2013-05-16Adjust semantics of Formula#fetchJack Nagel
It doesn't really make logical sense that this method returns both the fetched path (or sometimes nil!) and the downloader, so just return the path (again, or nil!) and callers that want the downloader can ask for it separately.
2013-05-16fetch: rename 'tarball' to 'download'Jack Nagel
2013-05-16fetch: use concat rather than << and flattenJack Nagel
2013-02-01Refactor fetchJack Nagel
Remove direct references to checksum types, access them through the Checksum::TYPES constant instead.
2013-01-26Replace usages of recursive_deps with recursive_dependenciesJack Nagel
2013-01-26brew-fetch: remove MD5 output.Mike McQuaid
2012-09-03brew-fetch: Return error code on unmatched hash.Mike McQuaid
2012-07-08fetch: remove dead codeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04fetch: use new checksum verificationJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04fetch: make use of new formula specsJack Nagel
2012-04-02fetch: don't display cached location twiceJack Nagel
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-03-21brew fetch: show downloaded pathAdam Vandenberg
2012-03-18Use fetch for downloading bottles.Mike McQuaid
Fixes #10958.
2012-02-15fetch: compare checksums case-insensitivelyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-04Warn the user of required argumentsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-09fetch: use correct sha256 instance variableJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19mirror support: Add mirror method to Formula.rbCharlie Sharpsteen
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-01fetch: fix '--force' for pathnamesJack Nagel
`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-04-14Added SHA-256 to the fetch command.Birger J. Nordølum
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-14Add `brew fetch --deps`Adam Vandenberg
`brew fetch --deps` will also cache the dependencies of any listed formulae.
2011-03-12'brew fetch' now an official commandAdam Vandenberg