Commit Graph
639 Commits
Author SHA1 Message Date
Adam Vandenberg 4ad14737a4 audit: check conflict names 2013-01-03 11:22:31 -08:00
Mike McQuaid 1e6e443ba1 Add caveats class and use in brew info.
Probably a better approach than reverted e721c7.

Fixes #16604.
2013-01-02 09:28:15 +00:00
Jack Nagel 82a2fdcd33 Respect BROWSER environment variable 2012-12-27 23:41:44 -06:00
Misty De Meo 2c2caf7cf0 Replace sceaga/homebrew with mistydemeo/tigerbrew
@sceaga has discontinued his homebrew fork, so tigerbrew is now PPC/
Tiger users' best bet.
2012-12-27 21:55:15 -04:00
Jack Nagel caa4876735 doctor: add helper for printing file listings 2012-12-22 12:48:53 -06:00
Jack Nagel 33465bbec9 doctor: f.prefix is already a pathname 2012-12-21 19:33:24 -06:00
Jack Nagel 73f76162c2 doctor: print offending paths in check_for_gettext
c.f. #16688.
2012-12-21 18:03:24 -06:00
Jack Nagel c1c0abd080 doctor: rename path_folders to paths 2012-12-21 17:16:57 -06:00
Jack Nagel d0ab4d9eae doctor: use a more rubyish conditional 2012-12-21 17:14:01 -06:00
Jack Nagel 4eb9620638 doctor: avoid pointless creation of pathname object 2012-12-21 17:12:00 -06:00
Jack Nagel 20f79e49ed doctor: run slowest checks last 2012-12-21 15:15:42 -06:00
Jack Nagel abc1bd2762 cleanup: fix 1.8.6 compatibilty issue
Fixes #16655.
2012-12-19 12:00:25 -06:00
Charlie Sharpsteen 78e7cc32e8 upgrade.rb: Generate Tab from Keg not Formula
Two issues were preventing `brew upgrade` from functioning properly:

  - `Tab.for_formula` was used to recover options from prior installs. The
    problem is that during an upgrade `for_formula` will be directed to a
    non-existant install of the newer version and thus returns a forged tab
    claiming no options were invoked.

  - The assignment to `installer.install_bottle` requires parenthesis in order
    to function properly.
2012-12-18 15:12:10 -08:00
Jack Nagel ac86882a1e Better reporting for MacPorts/Fink installations
closes #15853.
2012-12-17 17:18:22 -06:00
Jack Nagel 8f6d4ea021 Revert "Add launchctl_instructions method"
This code makes assumptions about the existence of prefix which are
valid in the context of the installer, but not necessarily in the
context of `brew info`, thus `brew info` on an outdated formula errors
out.

This reverts commit e5b53dd64b.
2012-12-16 19:56:15 -06:00
Lorenzo Manacorda e5b53dd64b Add launchctl_instructions method
Closes #16604.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-16 23:31:30 +00:00
Mike McQuaid a7247b92f6 Check if Cellar and Cache exist before cleaning. 2012-12-16 19:15:18 +00:00
Jack Nagel 2c1ad3ce38 Improve Xcode and CLT config reporting
We support three configurations: Xcode-only, CLT-only, and Xcode with
CLT. Our configuration output should correctly reflect this.

While MacOS::Xcode.version has to continue to return a guess if Xcode is
not installed in order to maintain backwards compatibility, this is an
implementation detail that we don't need to expose to the user. And it
makes `brew --config` output confusing.

So let's only print the "Xcode" line when an actual Xcode installation
is present. This makes it easy to quickly figure out which of the three
possible configurations the user is running.

Addresses #14941, more or less.
2012-12-12 23:33:29 -06:00
Jack Nagel 04ddb1cbff doctor: don't check keg-onlies if cellar doesn't exist 2012-12-08 16:41:31 -06:00
Mislav Marohnić ed7f06b7f0 proper version sort in outdated command
c.f. #16382.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-04 21:10:03 -06:00
Mislav Marohnić 15ddc2beb6 propert version sort in info command
Closes #16382.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-04 21:09:44 -06:00
Xiyue Deng dc19acc2b4 brew-cleanup: check whether keg is a directory.
* Avoid problem when encountering `.DS_Store' in Cellar.

Closes #16356.
Closes #16388.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-04 11:40:38 +00:00
Xiyue Deng 1739239911 brew cleanup: don't remove higher version kegs.
* Use version compare to only remove kegs with lower version than the
  current one, not higher version which might be from someone's
  branch.
* Do the same for cache cleanup.
  - Be conservative so that if a name detected from cache file is not
    the same as its formula then don't clean it.

Closes #15914.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-11-30 21:37:56 +00:00
Mike McQuaid 7908ac3341 Whitelist 10.8.2 Supplemental Update static libs.
Fixes #16215.
2012-11-26 09:41:05 +00:00
Jack Nagel 976366e5ed bash completion for doctor checks 2012-11-13 16:49:43 -06:00
Jack Nagel e40a7d4985 Don't advise XQuartz upgrades for system X11
Yeah, yeah. The XQuartz/X11 stuff is confusing.
2012-11-12 19:48:09 -06:00
Adam Vandenberg 50308e9d75 exclude repository from brew list --unbrewed 2012-11-12 09:56:45 -08:00
Adam Vandenberg 211092f01b doctor checks XQuartz version
Closes #14182.
2012-11-11 12:33:50 -08:00
Adam Vandenberg eb25ba8452 Use a class for FORMULA_META_FILES
* lets more text types get picked up
* better filter for `brew list`
2012-11-11 10:27:03 -08:00
Adam Vandenberg 9157da6713 Exclude the cache from brew list --unbrewed
If you have relocated your HOMEBREW_CACHE under HOMEBREW_PREFIX,
then don't show these files as "unbrewed".
2012-11-10 11:26:47 -08:00
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