aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2011-10-24brew-pull: Add flag to suppress whitespace fixesCharlie Sharpsteen
When the pull request includes a patch, fixing whitespace can break the patch.
2011-10-22Remove debian mirror check; it is just noiseAdam Vandenberg
2011-10-22Add UnsafeSubversionDownloadStrategyMisty De Meo
There was an UnsafeSubversionDownloadStrategy in a single formula before, but a) it broke against later changes to SubversionDownloadStrategy, and b) wasn't available to other formula. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-10-18doctor: correctly detect CLICOLOR_FORCEJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-18audit: complain more about tabsAdam Vandenberg
2011-10-15audit: check mirror URLsJack Nagel
This will actually throw some possibly unwanted warnings, e.g. whining about using mirrors.kernel.org for Debian software; we might only want that warning for the default URL. Perhaps mirrors deserve their own audit_formula_mirrors, but rather than duplicate code, let's just check them against the standard criteria for now. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-14brew-unpack: define fails_with_llvm? as falseJack Nagel
brew-unpack was failing for formulae that satisfy fails_with_llvm? as handle_llvm_failure() requires our ENV extension to get ENV.compiler. Rather than requiring extend/ENV, just define fails_with_llvm? as false since we don't really care about that when just unpacking a formula. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-14add Xcode to the blacklistMisty De Meo
Closes Homebrew/homebrew#8106. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-12Add bash completion for subcommand optionsJack Nagel
We already have option completion for `brew install`; now we have it for all core commands, and the --cache, --cellar, and --prefix flags now have appropriate formula completion. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-12Redocument `brew missing` in the man pageJack Nagel
Per mxcl/homebrew@6b0c44d, @mxcl: "And in that mind, brew missing is some cases an essential tool and should absolutely be in the manpage." Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-12Document `brew diy` in the man pageJack Nagel
The documentation on this is hard to find, and awareness of the command itself is pretty low. Which is too bad, because it's really handy and I use it all the time myself. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-12man page: add some undocumented optionsJack Nagel
While updating the bash completion script, I encountered some options that were previously undocumented. I purposely did not document the --macports and --fink flags for `brew create`, because the exact same functionality exists in `brew search`. Perhaps we should remove it from create. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-11Ensure cache folder existsAdam Vandenberg
2011-10-10doctor: check git versionJack Nagel
Checking out over HTTP/HTTPS from GitHub requires git 1.6.6, as GitHub only allows Smart HTTP transport. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-10Add an attr_reader for 'head'Jack Nagel
This allows `brew audit` to inspect the head URLs, for example; until now, that check was failing silently. 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-10-09Fix syntax error in the bash-completion scriptJack Nagel
My bad. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-08Make bash completion for `upgrade` smarterJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-08Make zsh completion for `upgrade` smarterMotonori Iwata
Closes Homebrew/homebrew#7889. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-08Add `upgrade` to the zsh completion scriptBertrand Marron
Closes Homebrew/homebrew#7923. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-06cleaner: correctly obey HOMEBREW_KEEP_INFOJack Nagel
The advertised default is that anything in share/info is removed unless the user sets HOMEBREW_KEEP_INFO, but we've actually been installing the files *unless* the variable is set. To illustrate: $ unset HOMEBREW_KEEP_INFO $ brew install -v wdiff [...] ln /usr/local/share/locale/af/LC_MESSAGES/wdiff-gnulib.mo ln /usr/local/share/info/wdiff.info ln /usr/local/share/info/dir ==> Summary [...] $ HOMEBREW_KEEP_INFO=1 brew install -v wdiff ln /usr/local/share/locale/af/LC_MESSAGES/wdiff-gnulib.mo ==> Summary [...] Obviously not what we wanted. Closes Homebrew/homebrew#7989. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-04formula.rb: Don't attempt to mirror unstable URLsCharlie Sharpsteen
If a build is being influenced by an option such as `--HEAD`. Don't attempt mirrors if a download fails. Fixes Homebrew/homebrew#7971.
2011-10-04pathname.rb: Fix spelling for permssionsDustin Koupal
Closes Homebrew/homebrew#7970. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-04Add FileVault use case to manual.Adam Vandenberg
2011-10-03Fix :sha spec so that it actually checks out the SHADaniel Bingham
:sha was used to prevent the "--depth" option to git clone, but was never actually used to checkout the SHA. Closes Homebrew/homebrew#7859. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-03doctor: warn about expired SSL certs on LeopardJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-02audit: improve SF 'use_mirror' detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-30Fix gem install help for brew-serverAdam Vandenberg
Sinatra gem must be installed for the system ruby.
2011-09-30List all local installed packages in brew serverat@an-ti.eu
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-09-28audit: match #{prefix}/libexec and prefix+'libexec'Jack Nagel
These were being picked up as just "#{prefix}/lib" and prefix+'lib' due to the eagerness of the regex. Reordering "lib" and "libexec" will take care of it; I couldn't think of a more clever solution. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-27doctor: remove redundant sentenceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-26missing should not error if Cellar does not existAdam Vandenberg
2011-09-23manpage: Remove `missing`, `server` and `which`Charlie Sharpsteen
These are external commands---documentation has been moved to the wiki.
2011-09-21update: correct failing testsJack Nagel
Commit dec4b73aa0 ("Allow `brew update --rebase`") changed the format of the `git pull` command slightly, introducing an extra space (to allow for the --rebase option), so let's update the test expectations for this. We still need to write tests for '--rebase', but in the meantime they once again pass for the normal case. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21Correctly parse ImageMagick bottle versionJack Nagel
Commit 2695821e98 ("Only use the bottle if its version is up-to-date") essentially broke the ImageMagick bottle, because the version parsing logic returns "1" as the bottle version. Fixing this requires only a slight modification to the bottle URL regex; includes a test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21audit: recognize options used with 'ARGV.flag?'Jack Nagel
A few formula use ARGV.flag? instead of ARGV.include?. This made `audit` recognize a few undocumented instances of a '--devel' option, but we can just ignore that like '--HEAD' for now, and change the behavior if we decide they need to be documented explicitly in each formula. cf. Homebrew/homebrew#7456. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19doctor: only check git status if repository existsJack Nagel
Closes Homebrew/homebrew#7722. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-20More docs for `brew create` generated formula testsMax Howell
To assist those new to stuff.
2011-09-19formula.rb: Move cache dir creation to fetchCharlie Sharpsteen
So that the cache directory will get created if the user runs `brew fetch` instead of `brew install` as the first command.
2011-09-19manpage: boldface --rebase optionJack Nagel
This is consistent with how other options are displayed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-20Allow `brew update --rebase`Max Howell
2011-09-19Remove `brew-man` documentationJack Nagel
It was extraneous, and useful only for maintainers and contributors. It is currently documented on the External Commands page of the wiki. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19Improve external command documentationJack Nagel
In addition to a brief overview of what external commands are, add a link to the wiki page where the real documentation resides. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19Only try mirrors for CurlDownloadStrategiesMax Howell
Also adjust output text slightly for prettiness. A possibly useful side effect here is safe_system has a defined Exception (subclassing RuntimeError) now.
2011-09-19Revert "Pretty-print the "Trying a mirror" message"Jack Nagel
This reverts commit af8e3b5aeacdb10a412560e131d631ba733a8346. Sorry for the noise. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19Pretty-print the "Trying a mirror" messageJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19mirror support: External command for mirror testsCharlie Sharpsteen
`brew mirror-check <formula...>` will process a list of Formulae and check their mirrors to see if they are reachable and the MD5 sums are valid.
2011-09-19mirror support: Add testCharlie Sharpsteen
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 Homebrew/homebrew#7574.
2011-09-19exceptions.rb: Add DownloadErrorCharlie Sharpsteen
`DownloadError` is an exception that download stratigies can throw to indicate that a fetch was incomplete due to a failure in communication. The `curl` method in `utils.rb` has been upgraded to throw a `DownloadError` if something bad happens to `curl` execution.