aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2011-09-11brew-options: actually skip formulae with no optionsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-11doctor: be more robust about git status checkJack Nagel
`git status -s` would spit out "fatal: not a git repository" when not in HOMEBREW_PREFIX or a child directory of HOMEBREW_PREFIX. Specify a git-dir and work-tree to fix this. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-10Use HTTPS during `brew update`Jack Nagel
Closes #7527. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-09The doctor notices modifications to Homebrew coreMax Howell
Refs #7525.
2011-09-07Check that /usr/bin/cc exists in `brew doctor`Max Howell
Refs #7454.
2011-09-05Fix nil handling in `brew versions`Max Howell
Fixes #7392.
2011-09-02Fix typo in `brew doctor`Daemian Mack
Fixes #7383. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02Handle brew upgrade ARGV errors properlyMax Howell
Fixes #7304.
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-09-01Edit port/fink warningAdam Vandenberg
2011-09-01Edit port/fink warningAdam Vandenberg
2011-09-01add brew doctor check for spaces in Xcode pathAdam Vandenberg
2011-09-01Allow brew install --force againMax Howell
2011-08-31fix brew update treating command changes as deletionsMisty De Meo
`brew update` was treating all changes to internal commands as deletions due to a typo, resulting in spurious notifications of removed commands. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-31update: make `git pull` update origin/masterJack Nagel
Specify the refspec 'refs/heads/master:refs/remotes/origin/master' so that the remote-tracking branch origin/master gets update during `brew update` (git-pull updates remote-tracking branches when invoked like `git pull` or `git pull origin`, but not `git pull origin master`). Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-31Improved no-errors outputMax Howell
2011-08-31Only report PATH order diagnosis if conflicts are foundMax Howell
Rationale: brew doctor shouldn't give warnings for a default install. And this particular warning only applies for a small subset of formula: the ones that are "dupes". If we get reported issues that prove this was a mistake we will revert it.
2011-08-31Check for missing deps as part of `brew doctor`Max Howell
2011-08-28Prune LinkedKegs tooMax Howell
2011-08-26Feature new/removed internal commandsMax Howell
Removed updated external commands, like seriously, who cares? We could add it back as if --verbose is set I guess but in all honesty, if nobody complains then nobody cared. # We removed many redundant comments Removed many redundant comments. Fixes #7191; though it could be fixed better.
2011-08-26Fix `brew update` after new install for real this time?Max Howell
Fixes #7220.
2011-08-25Leopard: Eliminate moar `Array.count` from `brew upgrade`Charlie Sharpsteen
2011-08-24Leopard: Fix undefined method `count` for `Array`Charlie Sharpsteen
Leopard runs Ruby 1.8.6 while Snow Leopard runs 1.8.7 and `Array.count` was not introduced until 1.8.7. Using `Array.length` instead.
2011-08-25`brew update` uses origin rather than full URLMax Howell
This is more flexible for forks and personal customisations, and also more useful for us collaborators since the origin HEAD will be kept up-to-date.
2011-08-25Force contributors to define a test by adding it to the create templateMax Howell
A little cheeky but it should help us to maintain higher quality.
2011-08-24Don't include LinkedKegs or Aliases with `brew edit`Max Howell
2011-08-24Record which keg is linkedMax Howell
Will be useful for a variety of reasons, but for now, I'm just using it to ensure install won't install again if something is already installed (use brew upgrade instead). But means that brew switch and that can work properly etc.
2011-08-24Fix keg exception pretty outputMax Howell
2011-08-24`brew upgrade`Max Howell
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though. Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.
2011-08-24Prettier brew uses output (columnate)Max Howell
2011-08-24Constants that are used once are dumbMax Howell
It just means nobody knows what is being done without scrolling up and down, up and down the file like a doofus on a pogo stick.
2011-08-24Revise cleanup text, we're removing, not uninstallingMax Howell
2011-08-22Fix uninstall.rb `brew remove --force` "Directory not empty" errorDave Bayer
Finder activity such as moving the position of an icon can create an unexpected .DS_Store file in a Cellar directory. This causes `brew remove --force` to throw an error that is reported as Error: Directory not empty - /usr/local/Cellar/<formula> This fix avoids that error, by calling rmtree rather than rmdir. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-22Specify that they are symlinksMax Howell
2011-08-17Only error out for `sudo brew install`Max Howell
Note this only happens if Homebrew is *not* installed sudo. Which is most of the time true. Fixes #6899
2011-08-11Add keg-only text to `brew info` outputJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-07brew doctor: do not check TMPDIR if it is not setAdam Vandenberg
2011-08-06Reset --hard after the first git initMax Howell
We don't know what revision the tarball was when homebrew was installed, so all we can do really is hard reset. In theory some set of git commands should suffice, but apparently --soft and --mixed resets ended up putting stuff in the index which would break subsequent `brew updates`. Fixes #6851
2011-08-02Prettier `brew versions` outputMax Howell
2011-08-02Fix `brew doctor` if sbin directory doesn't existMax Howell
2011-08-02Fix `brew update` local changes bugJack Nagel
Users were seeing local changes in their repository after updating, even though they had made no local changes. The repository setup sequence should use `git reset --soft` rather than vanilla `git reset`, which defaults to '--mixed'. '--soft' updates _only_ HEAD, leaving the index as-is, allowing future incantations of `brew update` to proceed without errors. Fixes #6732.
2011-08-02Oops, show proper git checkout commandMax Howell
2011-08-02Improvements to `brew versions`Max Howell
The output happens as it is determined, rather than all at once, which is preferable for CLI commands. This meant I had to hard-code the left-justification. The pre-amble warning is removed. Instead the command outputs the git checkout command for each she that you can type to get that old formula. I decided that reseting the one file will work 99% of the time and that it is too risky to reset the whole repo, this will roll-back bug fixes. Instead we should add functionality to compat/ in order to support old formula as required. Sometimes deps may have to be rolled-back too, but the user will have to figure this out on an ad-hoc basis. We are assuming a failure sophisticated user anyway, one who would like to get old versions of stuff. I moved most of the functions into Formula since IMO this makes more conceptual sense. I made the she get abbreviated by git (using --abbrev-commit) itself so it as short as can be.
2011-08-02Added new command "versions"Sebastian Staudt
2011-07-31Fix brew update on LeopardAdam Vandenberg
2011-07-30fix doctor on 10.5Adam Vandenberg
2011-07-30Exclude brew manpages from unbrewed.Max Howell
2011-07-30Don't abort if /usr/local is not writableMax Howell
Since this is our new policy for /usr/local.
2011-07-29audit: make version checks strict onlyAdam Vandenberg
2011-07-29Emphasise the consequence of not installing to /usr/localMax Howell