aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2012-03-16Don't break if symlink already exists during tapMax Howell
This shouldn't happen but is possible and we should handle it. Also added some puts when tapping/untapping.
2012-03-16HOMEBREW_LIBRARYMax Howell
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
2012-03-16Pathname.atomic_writeMax Howell
2012-03-16Better conflict warnings when tappingMax Howell
2012-03-16Doctor check for unlinked not-keg-only brewsMax Howell
Since these cause trouble.
2012-03-16Link new tapped formula during brew updateMax Howell
Required me to spoil tap's code. All in the name of DRY! Alas!
2012-03-16Concise --config output for build errorsMax Howell
Rationale, lets only pay attention to the output when it matters. Speeding up diagnosis.
2012-03-16`brew info` understands tapsMax Howell
Note I removed some of the code that changed the URL to be that of the github.user. Because this doesn't make any sense really. We want people to reference the commit history for whatever fork of homebrew they have checked out. So this is now what it does.
2012-03-16Leave kegs keg-only if linking step failsMax Howell
Rationale: well, it should always have been like this! However now we are opening ourselves up to more-mixed installations of formula not maintained by us, it's important that
2012-03-16`brew update` will update tapsMax Howell
2012-03-16`brew edit adamv/alt/ruby` worksMax Howell
The reason it didn't work is it doesn't use ARGV.formulae because it needs to be able to edit stuff that doesn't parse. Most other stuff already works because we are awesome.
2012-03-16canonical_name can resolve tapsMax Howell
2012-03-16Prevent tapped symlinks showing up in git statusMax Howell
The symlinks taps write to Formula show up in git status, but this trick prevents this. brew-(un)tap maintain a .gitignore in Formula that contains all the symlinks brew-tap creates. We add the .gitignore to the root .gitignore and TADA! Magic.
2012-03-16`brew tap` and `brew untap`Max Howell
2012-03-16Improve CLI tools suggestion doctor textMax Howell
2012-03-16Tell user to `brew update' if no .gitMax Howell
2012-03-16Warn about broken symlinks in HOMEBREW_PREFIXMax Howell
Refs Homebrew/homebrew#10874.
2012-03-15Remove invalid character for UTF-8Michael Nygard
Closes Homebrew/homebrew#10962. Signed-off-by: Max Howell <max@methylblue.com>
2012-03-15Explicitly tell people not to xcode-select /Max Howell
Fed up dealing with this bug in xcode-select.
2012-03-13`brew test` now gets a compilation environmentAdam Vandenberg
2012-03-13Remove libiconv duplicateCamillo Lugaresi
Commit ee2c3ab ("Remove spurious libiconv dependencies") pruned all existing "depends_on 'libiconv'" usages from Homebrew in preparation for removing the libiconv dupe itself. Now that is done, and we can remove and blacklist it. It can be obtained from Homebrew-alt. Closes Homebrew/homebrew#10464. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-12brew doctor: check for DYLD_INSERT_LIBRARIESAdam Vandenberg
2012-03-10Add specialty formulase to inheritance checkAdam Vandenberg
2012-03-10Use HOMEBREW_REPOSITORY for freshness checkAdam Vandenberg
Homebrew itself is found under HOMEBREW_REPOSITORY, which *may* be the same HOMEBREW_PREFIX, but does not have to be if you link brew into /usr/local/bin from another location.
2012-03-10Move most bottle stuff to a bottles.rb file.Mike McQuaid
2012-03-10Support bottles for non-Lion OSX versions.Mike McQuaid
2012-03-10Make `brew-bottle` an internal command.Mike McQuaid
2012-03-09Remove unnecessary hyphenJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-10Remove bad exit status; need to fix another way.Mike McQuaid
2012-03-09Don't cleanup the wrong thingsMax Howell
This still isn't perfect, but it will handle hyphens in formula-names better now. A proper solution is not easy or maybe even possible unless we ban hyphens in versions AND formula names, or use a different character as a separate in downloaded cache files which we then ban from formula-name and version strings. Refs Homebrew/homebrew#2923.
2012-03-09Add better Unix exit codes.Mike McQuaid
Closes Homebrew/homebrew#10809.
2012-03-07Don't attempt to cleanup source checkoutsMax Howell
Fixes Homebrew/homebrew#10751.
2012-03-07Suggest full path to Xcode 4.3 /DeveloperMax Howell
Some people seem to have an older xcode-select even after installing the CLT from inside Xcode or otherwise. So this is works for both. Now we aren't future-proofed in case Apple change the location, but hopefully they won't, seems unlikely. Refs Homebrew/homebrew#10743. Fixes Homebrew/homebrew#10745.
2012-03-07Allow dependencies to still installMax Howell
Oops bug.
2012-03-07Don't allow `sudo brew upgrade` if not sensibleMax Howell
2012-03-07Don't abort upgrade if one formula won't buildMax Howell
Also, unlink previous keg before installing to prevent issues when existing installed brews cause build problems for the newer installed brew. If the build fails the active keg is relinked before aborting. Fixes #10341.
2012-03-07Stop supporting `brew install --force'Max Howell
Rationale: it breaks stuff. You should not be able to install over something already installed *and* linked. brew now prompts you to unlink the existing linked keg first. I came to fix this because I discovered that `brew install foo` works without --force provided foo's formula version is different to that which is installed and linked. I'm not sure if this was intentionally broken, but it led to at least two tickets I found where people were getting crazy issues trying to install over the top of already installed previous versions. So I also fixed a whole category of other issues, mostly by moving error handling into FormulaInstaller. Now error's can be caught in Homebrew.install and handled on a formula-by-formula basis. I will next port this behaviour to upgrade.
2012-03-06`brew cleanup` cleans up the download-cacheMax Howell
Manpage updated. The -s switch is "scrub" and removes downloads for uninstall formula which are downloads for the latest version of that formula still. Please NOTE cache is NOT cleaned if a formula argument is provided. I couldn't be bothered. Patches welcome :) Closes Homebrew/homebrew#2923.
2012-03-06The doctor checks if you need to `brew update`Max Howell
Well at least it checks to see if it's been a while since the last one.
2012-03-06'brew doctor' provides bad example commandJonathan Hitchcock
If there are multiple dependencies missing, 'brew doctor' can suggest that you run something like: brew install autoconf libyaml autoconf, libyaml This commit improves that output. Closes Homebrew/homebrew#10720. Signed-off-by: Max Howell <max@methylblue.com>
2012-03-06Don't require formula files for `brew rm --force`Max Howell
In fixing this I also made it so that ARGV.kegs will return the LinkedKeg if the symlink is set. Which is almost always is. This neatly avoids most multiple-kegs issues. Fixes Homebrew/homebrew#10685.
2012-03-06Doctor check for `python` is Python-3Max Howell
Refs Homebrew/homebrew#9541.
2012-03-04Don't allow `brew link` to be run as sudoMax Howell
2012-03-02update: disable git line ending conversionJack Nagel
If a user has set core.autocrlf = true (which shouldn't ever be used on OS X, but alas...), a subsequent `brew update` will check out files with CRLF line endings. Setting core.autocrlf = false in Homebrew's repo config will override this global setting, and let us check out files with their in-repository line endings. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-01doctor: make `git status` check sanerJack Nagel
The order of things made the check for git in the path pointless (and was my fault); this is a better way to do it. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-01doctor: s/folder/directory/Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-01audit: check for gfotran in Formula#deps insteadJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-01Don't duplicate missing deps in `brew doctor`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-02Clearer brew doctor output for brew missingMax Howell
It was confusing that it told you to brew install missing deps and then listed formula that were already installed IMO.
2012-03-02Specify current Xcode to aid issue-diagnosisMax Howell
I saw a ticket with just doctor output and no `brew --config`. This helps.