Commit Graph
609 Commits
Author SHA1 Message Date
Jack Nagel ecab32340d Fix curlrc existence check
Enumerable#one? is not available under Ruby 1.8.6. Further, we really
want #any? here, as setting both HOME and CURL_HOME can trigger a false
negative.

Fixes #15883.
2012-11-06 19:02:02 -06:00
Jack Nagel 5123a77842 Hoist top-level directory list into a constant 2012-11-06 12:32:09 -06:00
Charlie Sharpsteen 6e29cdc24e doctor: Remove fuse.pc from the whitelist
Having a third-party `fuse.pc` file will conflict with the `fuse4x` formula.
2012-11-03 15:44:51 -07:00
Adam Vandenberg 9fc68bdb38 Error out on lowercase --head parameter to install.
Fixes #14815.
2012-11-01 08:08:40 -07:00
Charlie Sharpsteen a365abf0ae brew-update: Guard non-directory files in Taps
Skip any entries returned by `Dir["Library/Taps/*"].each` that are not
directories.
2012-10-28 12:34:43 -07:00
Max Howell 451b2adc62 Specify where to get the CLT package 2012-10-28 10:52:07 -04:00
Stephen Nelson ef2597847b Homebrew should not ignore curlrc
Added doctor check for .curlrc rather than silently ignoring it (#13836).

Closes #15419.

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

Removed test in doctor where it actually curl'd a file. It's enough to warn if the curlrc exists. I understand people want to remove the warnings, but the point in the doctor is to help diagnose and not to be some ramification of your UNIX system.
2012-10-28 10:52:07 -04:00
Adam Vandenberg 8c29e7c672 doctor: check that Xcode prefix actually exists
Closes #14373.
2012-10-24 11:16:57 -07:00
Adam Vandenberg 84b7a15d10 Add relinking instructions.
Closes #15488.
2012-10-22 12:27:17 -07:00
Adam Vandenberg 4e617d2400 audit: loosen ARGV check 2012-10-21 13:24:00 -07:00
Misty De Meo f52ebe5fc7 brew ln --force is now brew ln --overwrite
* Renames --force to --overwrite, freeing up brew ln --force for #13349
* Changes --dry-run to preview linking by default, rather than
  overwriting. An overwrite dry-run can be simulated via both
  --dry-run --overwrite
* Adds some basic Keg tests
2012-10-20 21:00:46 -05:00
Christian Schlensker c1cc99bc7c pluralize the word 'Formula' in reports
Closes #15321.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-05 20:16:06 -07:00
Adam Vandenberg e1fb23b964 doctor: fix iconv dylib name 2012-10-03 12:41:20 -07:00
Max Howell c61daa969c Safer way to redirect puts to a file 2012-09-28 09:49:05 -04:00
Max Howell 29ea04e12b Only handle build-errors when it's a build-error
Refs #15164.
2012-09-28 09:37:38 -04:00
Max Howell 00e0b35631 Fix doctor hanging if xcode-select is bad
Also fix typo in the superenv DEVELOPER_DIR set detection code.
2012-09-24 08:49:58 -04:00
Max Howell c524ffe9ba superenv: Remove HOMEBREW_PREFIX/bin from PATH
We add the bins from all deps instead. Rationale: formula find and use eg. GNU-coreutils versions of things and then break. Only allow formula to use tools that they depend on and expect.

I want to go further and only add include paths etc. for dependencies, I have done some work on this, but I fear it may be impossible. If an include path is eg. /usr/local/lib/foo/include, is it possible to know if this path is bad? Not always AFAICT.
2012-09-23 21:26:50 -04:00
Max Howell 07a55a26bd brew cleanup -n: less scary 2012-09-22 00:29:17 -04:00
Max Howell c30a7ff05c brew --env: Use fetch rather than []
Because we mess with the return value from [] in superenv due to many formula assuming CFLAGS etc. would not be nil.
2012-09-21 23:30:34 -04:00
Jack Nagel e4aec6e2d7 cleanup: look for "HEAD", not "sha" in receipt
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-20 16:47:00 -05:00
Max Howell 338704e4a5 Provide more information about bad sf urls 2012-09-18 16:27:35 -04:00
Misty De Meo 3344229122 info: Add JSON output
Output JSON with the --json=v1 option. Output is in an array, and
supports one or more formulae (or all, with the --all option).

Why 'v1'? The format is unstable, presumably we'll deprecate it
someday. It should be solid by Homebrew 1.0.

Closes #13299.
2012-09-17 20:01:37 -05:00
Misty De Meo f342bf18b6 Make check for stray developer dir more specific
It looks like there can be harmless stuff leftover in
/Developer/Library, even after Xcode uninstalls older versions. The
existence of the uninstall-developer-folder script should be a better
indicator.

Fixes #14970.
2012-09-16 14:07:38 -05:00
Misty De Meo f8b351bfd0 Skip standard compilers check for unknown Xcode
Rescuing false on the StandardCompilers map meant that the doctor
check assumed that the compilers were incorrect, not merely
unknown.

Instead, skip the check and return nil for unknown Xcode; nil
should be interpreted as "dunno", instead of "true" or "false",
and the doctor check no longer prints on nil.
2012-09-14 17:11:51 -05:00
Jack Nagel 31fd1402e4 Restore X11 description to --config output
Oops.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-14 12:29:51 -05:00
Misty De Meo 30f47a7977 --prefix: don't use opt prefix if it doesn't exist 2012-09-13 10:19:11 -05:00
Misty De Meo 5d69169ea1 doctor: Add check for stray pre-4.3 Xcode files
/Developer/Library shouldn't exist if all the remnants of old
Xcode versions have been uninstalled, and tends to cause problems if
it's kept alongside modern Xcode.

"uninstall-developer-folder" should only remove /Developer/Library.
2012-09-13 10:18:21 -05:00
Misty De Meo f3f67535cd edit: create project view with subl, too
Sublime Text's subl tool supports lovely project views just the same
as TextMate. Since I use Sublime, I want good support from `brew
edit` too. :P
2012-09-13 09:39:33 -05:00
Adam Vandenberg 3a052fe00b Add skip_clean :all to audit 2012-09-13 07:14:45 -07:00
Max Howell 6c5f175a42 Use opt prefix for --prefix
Rationale: everyone thinks it points to the currently installed prefix, not the prefix of the formula that is newest and maybe not installed.

The previous behavior was unintentional and evidence proves it is not intuitive either.

I anticipate no regressions. And hope I am right!
2012-09-12 22:09:46 -04:00
Jack Nagel 85262a2b73 Remove dead code
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11 14:56:25 -05:00
Jack Nagel 83570d80ef test: be less eager to set up the build environment
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11 14:47:06 -05:00
Jack Nagel 4aa03d24be cleanup: skip rm_DS_Store during a dry run
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11 14:41:01 -05:00
Jack Nagel 2957b286a8 cleanup: allow --force to remove keg-only brews again
Fixes #14840.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11 14:29:33 -05:00
Jack Nagel 9a68eb188a Audit check for old MacOS version methods
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:40:13 -05:00
Jack Nagel a1397a49ae audit: allow some forms of gist patches
The problem is not the raw URLs, but URLs that do not contain the commit
hash corresponding to a particular version of the gist.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 20:47:05 -05:00
Jack Nagel 1e58679928 doctor: ignore case when checking PATH for config scripts
Fixes #14752.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 10:05:49 -05:00
Adam Vandenberg c89beafa7e Remove fink/macports from verbose --config if they are not present. 2012-09-05 22:07:35 -07:00
Adam Vandenberg 81210f65d5 audit: swig is a build time dep 2012-09-05 21:12:08 -07:00
Jack Nagel e209b35708 Improve brew --config responsiveness
Rather than build the whole output in a string, print each item as we
go. This gives the illusion of improved responsiveness by delaying the
expensive method calls until after the faster output.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-05 16:41:35 -05:00
Jack Nagel 7422bc46c3 Audit check for MACOS_VERSION
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-04 18:18:14 -05:00
Adam Vandenberg 74d360fd10 Exempt automake from some audits 2012-09-04 10:43:48 -07:00
Adam Vandenberg 3e6403c16b add audit for ENV.x11 2012-09-03 19:49:33 -07:00
Max Howell 124d9309f0 Undent doesn't like paragraphing 2012-09-03 15:12:30 -04:00
Mike McQuaid 800e7cff54 brew-audit: recommend SHA1 over MD5. 2012-09-03 11:20:07 -07:00
Mike McQuaid 8f6081b906 brew-fetch: Return error code on unmatched hash. 2012-09-03 11:20:07 -07:00
Adam Vandenberg 57fbd5ef7c Fix the name because adamv doesn't know what he's doing. 2012-09-01 19:01:56 -07:00
Adam Vandenberg 7a112696c8 bless alanthing/homebrew-apachemod
Add external tap to default search path, and recommend it for packaging
Apache Modules.
2012-09-01 18:51:39 -07:00
Jack Nagel 95b3ebcd82 brew list -v means verbose, not versions
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-01 13:28:30 -05:00
Max Howell a8fadbfaee brew -c1 one line configuration summary
At your option: `brew --config -1`.
2012-08-31 15:48:48 -04:00