4907 Commits

Author SHA1 Message Date
Max Howell
45b84df1bd Be more verbose when users insist on being sudoers
If you google for "Cowardly refusing to sudo brew" you get a lot of confused users who didn't read any of the Homebrew documentation and then had a hissy-fit.
2012-08-10 09:33:44 -04:00
Misty De Meo
ab80dfc5b7 create: Fix indentation for :x11 dep 2012-08-09 16:33:49 -05:00
Adam Vandenberg
ac9bc89bb3 Remove options audit check 2012-08-09 12:52:05 -07:00
Adam Vandenberg
e196c845bf Fix info/options for new options dsl 2012-08-09 09:24:27 -07:00
hazz
60bdb16a7c Run each search_tap in a separate thread to speed things up.
Closes Homebrew/homebrew#14066.

Signed-off-by: Max Howell <mxcl@me.com>
2012-08-09 11:58:58 -04:00
Adam Vandenberg
d1d52b3467 Add option to the DSL
Closes Homebrew/homebrew#9982
2012-08-08 22:01:27 -07:00
Jack Nagel
c2725aa048 Simplify conditional
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 15:33:29 -05:00
Jack Nagel
4f809d0311 Simplify printing conflicts in brew info
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 14:24:54 -05:00
Adam Vandenberg
d5ba82ca7e fix info command 2012-08-07 12:23:25 -07:00
Max Howell
3b23cf102f brew tap by itself handles dashes in usernames
This stuff sucks. I'd like to just replace the dash with a directory division or tilde character. But this makes the code even more complicated, unless we can figure out how to migrate the taps.
2012-08-07 14:24:09 -04:00
Stafford Brunk
cbee0bd2ee Print an appropriate message if the tapped repository appears to be private
Closes Homebrew/homebrew#12247.
Closes Homebrew/homebrew#12244.

Signed-off-by: Max Howell <mxcl@me.com>
2012-08-07 14:24:09 -04:00
Brandon Black
bcde6432f3 Fix issues with writable? detection in brew doctor
Closes Homebrew/homebrew#13689.

Signed-off-by: Max Howell <mxcl@me.com>

There are subtle distinctions between writable? and writable_real? we don't
understand precisely why we need this, but it fixes the bugs :/
2012-08-06 22:02:38 -04:00
Max Howell
1f62284384 Restore check for broken xcode-select path
How did this get removed? Had a bug today where user had this but no doctor check so I was confused!
2012-08-06 19:28:39 -04:00
samueljohn
27fae8a829 brew --env: Added missing env vars
Closes Homebrew/homebrew#13431.

Signed-off-by: Max Howell <mxcl@me.com>
2012-08-06 18:22:45 -04:00
Max Howell
6629a9e23f Don't error out if never brew updated
Fixes Homebrew/homebrew#12944.
2012-08-06 16:44:11 -04:00
Patrick Lucas
47cdd4d819 Suggest git clean -f for untracked changes
Currently, if brew doctor detects untracked changes in the local repo,
it suggests doing 'git reset --hard', but that doesn't remove untracked
files. This change adds an additional suggestion to run 'git clean -f'
to remove them.

Closes Homebrew/homebrew#12814.

Signed-off-by: Max Howell <mxcl@me.com>

Changed the path to Library as we don't want to clean -f all over the whole /usr/local :P
2012-08-06 15:59:12 -04:00
Max Howell
7c8a2656f0 New command brew irb
Works rather damn well.

I considered `brew -i`, but we aren't a shell.
2012-08-06 14:41:55 -04:00
Max Howell
0152b34839 Don't blacklist tapped-dupes
If a formula is in Formula due to tapping or otherwise, don't prohibit installation.

Really we should make the blacklist *really* stuff that should be blacklisted and then if it is available still require a --force. But currently with okay stuff like vim in there, and libxml2 being both blacklisted *and* in mxcl/master, we are screwing ourselves.

TL;DR we should do some work on this component.

Fixes Homebrew/homebrew#13234.
2012-08-06 14:22:22 -04:00
Max Howell
28c9b8f601 Put the CLT advice warning in the right place
Refs Homebrew/homebrew#13982.
2012-08-06 13:26:39 -04:00
Max Howell
a9f246eaad Point out to that you may want to install the CLT
You have to hold people's hands, they won't google anything.

Refs Homebrew/homebrew#13982.
2012-08-06 13:06:36 -04:00
Jack Nagel
bbcbbcdaa1 Remove X11 doctor check
Now that X11 components are specified as dependencies, users will be
prompted to install these components when necessary, and this check is
no longer needed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06 00:42:43 -05:00
Jack Nagel
7488b9844b Adjust XQuartz/X11 module naming scheme
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06 00:39:06 -05:00
Max Howell
3ea35f3351 Some users require hands to be held constantly
Tell user exactly what command to use rather than thinking they'll figure it out by applying some negation logic to the main verb in the sentence they just read.

Closes Homebrew/homebrew#12790.
2012-08-05 10:46:35 -04:00
Max Howell
ac27ff1bdf brew log works with Tapped formula
Fixes Homebrew/homebrew#12446.
2012-08-05 10:34:44 -04:00
Max Howell
4b5052f614 Show options for foo with brew info foo
About time right?
2012-08-04 15:40:36 -04:00
Max Howell
28bbced64b brew tap --repair
Removes dead symlinks in Formula and re-symlinks all Taps.

Closes Homebrew/homebrew#11565.
2012-08-04 15:11:47 -04:00
Max Howell
e8c9a19f65 Tap users can have dashes, adjust regex
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
2012-08-04 15:11:47 -04:00
Max Howell
e8776194ac REPOSITORY not PREFIX when checking for the .git 2012-08-02 10:20:22 -04:00
Max Howell
ea6bfb66a1 Error handling for individual taps
Possibly would help diagnose: Homebrew/homebrew#13853.
2012-08-01 16:19:25 -04:00
Max Howell
b51fe22413 Warn user not to edit before first update
Because, if you do, your changes will be lost.
2012-08-01 15:59:30 -04:00
Jack Nagel
148617bc11 Move X11 machinery into MacOS::XQuartz namespace
In order to better support Xcode-only systems, where X11 libs and
executables live under /usr/X11 but headers live in the SDK, move the
x11_* helper methods into a new module.

This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz
logic hidden from outside code, like ENV.x11.

Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
2012-08-01 00:31:38 -05:00
Max Howell
d5f2cdd31c Deprecate adamv/alt from brew search
Add brew/science.
2012-07-30 13:24:53 -04:00
Misty De Meo
0c237a8679 Add conflicts_with DSL method
conflicts_with is a thin wrapper around Requirement which simplifies
marking conflicts between formulae.

Closes Homebrew/homebrew#13687.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-30 13:47:12 -03:00
Charlie Sharpsteen
524190f109 brew-audit: Warn against depending on MPI
Depending on `open-mpi` or `mpich2` will cause problems since both formulae
install components with the same names. `brew audit` now recommends using
MPIDependency.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-28 09:12:44 -07:00
Mike McQuaid
450dcf75dc Fix brew doctor warnings and spurious newline.
Fixes the problems discussed in 34c970 to ensure that `brew doctor`
does not look like it is broken on user setup problems but still
returns a sensible exit code for e.g. BrewBot.
2012-07-25 22:54:44 +01:00
Jack Nagel
74839417ea Rename xctools_fucked?
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 12:04:42 -05:00
Jack Nagel
4eeb0e6441 Use new Xcode module
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 12:04:41 -05:00
Jack Nagel
62482504a9 Split Xcode and CLT methods into separate modules
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 11:58:01 -05:00
Adam Vandenberg
fd7cf8f293 doctor: be consistent in path advice 2012-07-24 12:28:02 -07:00
Adam Vandenberg
5de94e48bd doctor: check for DYLD_FALLBACK_LIBRARY_PATH 2012-07-23 16:08:05 -07:00
Misty De Meo
a8a16928e4 doctor: Skip outdated check when offline
Fixes Homebrew/homebrew#13535.
2012-07-22 12:57:03 -05:00
Misty De Meo
17953f2b83 Keg#unlink: check destination before unlinking
Rather than skip unlinking if there's no linked keg record, check to
see whether the destination's realpath is the same as the source file
in the keg being unlinked.
2012-07-22 10:58:19 -05:00
Misty De Meo
4c38d15110 brew unlink: don't unlink an unlinked formula
This caused weird issues in the case that multiple formulae provide
the same file.
2012-07-20 11:00:48 -05:00
Misty De Meo
3696180fd7 Update Xcode checks for 10.8 2012-07-12 14:34:00 -05:00
Jack Nagel
bb2e67f37e doctor: fix incorrect usage of 'or'
Eventually I will stop making this mistake.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12 03:01:28 -05:00
Adam Vandenberg
1b37ed4269 use keg.linked? 2012-07-11 20:13:46 -07:00
Misty De Meo
f17429f842 ARGV: add .dry_run? method
Add an ARGV.dry_run? helper method for '--dry-run'/'-n' now that
'-n' is being used as a git-style dry-run in two commands.

Closes Homebrew/homebrew#12898.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-09 12:01:09 -05:00
Misty De Meo
743b5e6feb link: add --force and --dry-run options
`brew link` can now be made to delete any conflicting files using
the --force argument. It also has a --dry-run option, similar to
git clean -n, which will list any files which would be deleted
without touching the filesystem.

Closes Homebrew/homebrew#11811.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-09 12:01:09 -05:00
Jack Nagel
a8c05c9772 Restore some things to failed install config dump
Closes Homebrew/homebrew#11091.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 12:27:19 -05:00
Jack Nagel
1478615429 Display compiler build numbers in config dump
But only display them if they are out of sync with the corresponding
Xcode version.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 12:26:10 -05:00