aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/fetch.rb
AgeCommit message (Collapse)Author
2014-10-21Point to a tap when installing or fetching.Mike McQuaid
When installing or fetching and stuff goes wrong we can't always catch the error and redirect to the tap. Instead, point to the tap before we do anything failure-prone and hopefully that'll encourage people to file issues in the right place. If not we can say that explicitly. Closes #33220.
2014-09-10Store the object itself in the failed download setJack Nagel
Patches don't respond to "name".
2014-08-22Use a set to track failed downloadsJack Nagel
2014-08-22Rescue only DownloadErrorJack Nagel
2014-08-16fetch: retry the download on a failure.Mike McQuaid
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-03-13Teach fetch to download patchesJack Nagel
2014-03-10Update fetch command for generalized bottle implementationJack Nagel
2014-03-08fetch: fix --retry with resources.Mike McQuaid
2014-03-06fetch: fix overloading Homebrew.failed.Mike McQuaid
2014-03-01fetch: add --retry option to retry fetch once.Mike McQuaid
Sometimes there may be intermittent failures with hosts that work if immediately retried. Let's allow a single retry in this case with the --retry flag. This also behaves nicely with the --force flag. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-31fetch: check for existing cache file before downloadingJack Nagel
2013-10-31fetch: clear partial downloads when --force is givenJack Nagel
Fixes #23764.
2013-09-11Allow resource fetchingAdam Vandenberg
Closes #20047.
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