Commit Graph
97 Commits
Author SHA1 Message Date
risk 358f78a10a check for a valid $TMPDIR path in brew doctor
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-28 19:50:39 -07:00
Adam Vandenberg adfe65e931 Fix brew doctor when no Xcode is detected. 2011-07-26 16:01:30 -07:00
Jack Nagel ee2f510e18 doctor: be more forgiving about GREP_OPTIONS
Currently, `brew doctor` complains about GREP_OPTIONS being set,
regardless of its value. The cmake formula, for which this check was
introduced, is more specific about what actually makes it fail.

GREP_OPTIONS='--color=auto' will not cause the build to fail, so don't
warn about this.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-25 16:25:44 -07:00
Brant Bobby fc04e8c90f Fix typo in brew doctor command
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-22 11:47:13 -07:00
Charlie Sharpsteen 4810cf12a5 Retire check for GCC 4.0 under XCode 4.x
XCode 4.x only includes GCC 4.2. Therefore, having `brew doctor` report that
GCC 4.0 is missing only spreads fear, uncertainty and doubt over a situation
that is status quo.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-21 08:10:33 -07:00
Mislav Marohnić ad5c973a3f doctor: don't report wrong location of autoconf if it's missing
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-10 12:18:55 -07:00
Adam Vandenberg dbba2dfa41 brew-doctor: use String.start_with? 2011-06-19 21:32:54 -07:00
Les Hill 166b199c6b doctor: check /usr/local for writablity
- Airfoil during the install of InstantOn changes /usr/local to
  root:wheel ownership

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-19 09:46:57 -07:00
Max Howell d5a7d18b1c Don’t output "nothing" messages
This is how we do it in general in Homebrew.
2011-06-17 09:30:25 +01:00
Adam Vandenberg 9d07b5ac84 Inclue HOMEBREW_USE_CLANG in --env output 2011-06-16 20:58:06 -07:00
José Martínez 61cec92985 Add clang compiler option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 20:45:52 -07:00
Adam Vandenberg 721a00e643 be more ruby-like 2011-06-16 20:35:09 -07:00
Adam Vandenberg 4c00eb6dcd audit: check for redundant 'version' 2011-06-16 20:31:55 -07:00
Jack Nagel d2330d6748 Fix brew-info when on branch master and github.user set
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 19:30:19 -07:00
Adam Vandenberg 10857e516f deps: document -n switch 2011-06-15 09:02:18 -07:00
Max Howell 57338d3c67 Don’t error out if the Cellar doesn’t yet exist 2011-06-15 13:04:06 +01:00
Max Howell 8bec9b18ef Fix first brew update with Git 1.7.4+; Fixes #5128
Behaviour for git checkout was changed such that the update would fail because it refused to checkout files on to existing files in the working directory.

This was bad behaviour anyway, we should make efforts to keep any local modifications to the Homebrew checkout. Everything is neatly resolved if we just do a --soft reset.

Closes #6017.
2011-06-15 13:02:48 +01:00
Mislav Marohnić cae8f9e21d refactor update command to use git diff instead of parsing pull output
This fixes reporting of which formulae changed in git versions where `pull`
output is not compatible.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-14 14:47:39 -07:00
Adam Vandenberg 28f01142b2 brew audit: check for git://github.com/ urls and warn 2011-06-13 14:20:55 -07:00
Adam Vandenberg c240eab0ee brew-doctor: do not complain about trailing slashes 2011-06-07 13:18:00 -07:00
Adam Vandenberg 3d1e533057 Reformat minimum Xcode check 2011-06-06 08:03:07 -07:00
Adam Vandenberg 1df08d33a8 brew audit: also check for spaces in Amazon formulae 2011-06-06 07:25:00 -07:00
Mislav Marohnić 2aeea9d135 the doctor command exits with status "1" if there are warnings
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-03 21:16:02 -07:00
Mislav Marohnić fdfcdfc82d simplify the $stdout hijack in doctor command
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-03 21:15:58 -07:00
Mislav Marohnić 0d28bc78d7 fix doctor command in case Cellar dir doesn't yet exist
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-03 21:15:55 -07:00
Adam Vandenberg f921f46078 brew-doctor: only check sbin if it exists 2011-06-02 09:27:11 -07:00
Adam Vandenberg 82b9e60b84 brew-audit: do not abort after first brew with errors 2011-05-31 13:32:47 -07:00
Jack Nagel d854b04b82 audit exits with status 1 if there are problems
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-27 22:03:20 -07:00
Adam Vandenberg dda52d5d91 brew doctor: update autoconf message 2011-05-26 22:19:22 -07:00
Mike McQuaid 58b7a5edbe Create method for accessing Xcode version. 2011-05-18 17:04:00 +01:00
Adam Vandenberg bebe5af9c4 brew doctor: find suspicious git newline configs 2011-05-12 08:47:51 -07:00
Adam Vandenberg d18978d6fd brew doctor: check for stray .la files 2011-05-12 08:10:47 -07:00
Adam Vandenberg 08329627dc brew doctor: warn about Mono and CMake 2011-05-12 07:24:10 -07:00
Adam Vandenberg f81d5f88c8 brew doctor: add check for stray .pc files 2011-05-09 17:23:35 -07:00
Jack Nagel d3d8a916cf Fix misspelled method name: Formula.canonical_name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-07 21:50:37 -07:00
Adam Vandenberg 4090b6386b brew doctor: check for stray static libs too
CMake will pick up static libs in /usr/local.
2011-05-05 09:40:03 -07:00
Adam Vandenberg 9683cbad47 brew doctor: hard-code full path to mount command 2011-04-29 09:15:39 -07:00
Adam Vandenberg 148c2de617 Fix audit for new universal handling 2011-04-23 09:06:41 -07:00
Sebastian Staudt a91c050f00 Fixed reading branch name
The git command now uses --git-dir instead of --work-tree.
Using --work-tree won't work if you are inside another Git repository.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-18 22:30:48 -07:00
Adam Vandenberg f4d21415de Add --force to brew cleanup 2011-04-18 21:11:08 -07:00
Birger J. Nordølum 528c4d9152 Added SHA-256 to the fetch command.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-14 15:43:58 -07:00
Adam Vandenberg dda2d6988a Add brew fetch --deps
`brew fetch --deps` will also cache the dependencies of any listed formulae.
2011-04-14 15:09:15 -07:00
Adam Vandenberg 4d4a5bcc75 brew deps: add hidden option -n
-n means 'natural order' instead of alpha-order, and will show
the order in which the deps will be installed.
2011-04-13 13:48:31 -07:00
Adam Vandenberg b14be381c6 Make brew deps Leopard compatible 2011-04-10 21:13:05 -07:00
Martin Kühl 413cd1e1d3 Fix formula paths for manually specified names.
When the name of a new formula can't be autodetected, it defaults to the empty
string. When it then gets read from user input later on, the new name is used
but the formula path, based on the name, stays empty.

This change sets the path after a new name was read.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-09 09:43:48 -07:00
Adam Vandenberg 7e7d6edb31 brew create: remind people to 'brew audit' 2011-04-05 08:37:59 -07:00
Adam Vandenberg 1f6f0ee7f3 brew create: ensure CACHE folder exists 2011-04-05 08:31:05 -07:00
Adam Vandenberg f9f90beaa1 brew audit: --strict warning for using $ in caveats
For multiple lines of commands to enter at a prompt, don't use
$ as a prompt marker to make it easier to copy/paste.
2011-04-04 16:40:38 -07:00
Adam Vandenberg ff7ae0cc1c brew doctor: add check for GREP_OPTIONS 2011-04-04 09:21:44 -07:00
Adam Vandenberg d0b7e64f65 brew doctor: update expat check
Apaprently both expat.framework and libexpat.framework exist
and interfere with CMake.
2011-04-04 08:48:42 -07:00