Commit Graph
3822 Commits
Author SHA1 Message Date
Mike McQuaid 257d189d78 doctor: fix autocrlf set command.
Fixes #25282.
2013-12-17 16:34:01 +00:00
Mike McQuaid 4a4ca0bb43 doctor: add instructions for remote migration. 2013-12-17 16:25:51 +00:00
Adam Vandenberg ec134462d2 add nlopt to migration 2013-12-16 20:23:12 -08:00
Adam Vandenberg 2e3db0d0b8 options: show --HEAD and --devel when appropriate
Closes #24680.
2013-12-15 19:42:08 -08:00
Chris Kampmeier 591516dee5 doctor: don't let gitconfig break dirty-tree check
`brew doctor` always complains about uncommitted modifications to
Homebrew when you have status.branch=true in your git config, because
the implicit --branch makes `git status -s` always print branch/tracking
info. The --porcelain mode is similar to -s/--short, but ignores most of
the user's config and should remain stable.

The --untracked-files option ensures we'll see untracked files even for
users with status.showUntrackedFiles=no, which is not suppressed by
--porcelain for some reason.

Closes #25230.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-15 17:20:45 +00:00
Misty De Meo 0d87f7ef47 CLT.version: check 10.9 CLT first
10.9 users might have older CLT receipts sitting around, which could
result in bad pkgutil results. For example, before changing this, my
`brew --config` was printing '1.0' (the 10.7 version) instead of
'5.0.1.0.1.1382131676', the actual CLT I had installed.
2013-12-14 16:21:00 -08:00
Mike McQuaid 913f6c1887 doctor: check for migrated origin Git remote.
Closes #25211.
2013-12-14 23:11:16 +00:00
Mike McQuaid 660e794ac6 update: rewrite origin to point to Homebrew org. 2013-12-14 23:10:20 +00:00
Mike McQuaid da7c92f0de tap: change core formula tap naming. 2013-12-14 23:10:20 +00:00
Jack Nagel 4d610f11cf bottle: remove unused require 2013-12-14 15:43:15 -06:00
Jack Nagel ba2d2da51d bottle: avoid keeping entire strings output in memory 2013-12-14 15:43:15 -06:00
Mike McQuaid 8f7e677456 Update string references to mxcl/homebrew. 2013-12-14 18:18:35 +00:00
Mike McQuaid 3c86d2b8ff Update docs, comment mxcl/homebrew refs. 2013-12-14 18:18:35 +00:00
Jack Nagel 0cc4da7bed Add HOMEBREW_TEMP to testing environment 2013-12-14 09:47:32 -06:00
Jack Nagel faa7a670fa Remove unnecessary captures in otool regexp 2013-12-14 09:35:58 -06:00
Jack Nagel 6c037c693b Unify install name parsing 2013-12-14 09:35:58 -06:00
Jack Nagel dbc688b06b keg: use start_with? instead of regexp match 2013-12-14 09:35:58 -06:00
Jack Nagel 8e2e76d99a Extract HOMEBREW_TEMP constant 2013-12-14 09:35:58 -06:00
Jack Nagel 1ed7284548 Move Pathname#dynamically_linked_libraries to mach module 2013-12-14 09:35:58 -06:00
Jack Nagel 38ab6dbd7e keg: add debug output to install name machinery 2013-12-14 09:35:58 -06:00
Jack Nagel c995562a86 keg: the argument to find_dylib is already a Pathname 2013-12-14 09:35:58 -06:00
Jack Nagel 1c6e042910 keg: combine loops in relocate_install_names 2013-12-14 09:35:58 -06:00
Jack Nagel 7df87e544a keg: eliminate reject_proc, make callers determine which names to fix 2013-12-14 09:35:58 -06:00
Jack Nagel cde2a8ee1c keg: yield install names successively instead of all at once
Every caller of install_names_for loops over the yielded array. Now that
we have separated the dylib id calculation and update, we can eliminate
the need for a separate loop and yield each install name individually.

Rename this method to "each_install_name_for" for clarity.
2013-12-14 09:35:57 -06:00
Jack Nagel fab1edb889 keg: decouple dylib id changes from install name changes
The dylib id calculation does not use any information gathered in
install_names_for, so we can pull the logic out completely and only
yield the install names.
2013-12-14 09:35:57 -06:00
Jack Nagel acb89948ed keg: factor out dylib id calculation 2013-12-14 09:35:57 -06:00
Jack Nagel 619a6225c0 keg: try to avoid disk IO when possible
Calling Pathname#text_executable? reads in the first 1024 bytes of the
file, so try the basename check (which requires no filesystem access)
first.
2013-12-14 09:35:57 -06:00
Jack Nagel 00d8cc0663 keg: use lib helper 2013-12-14 09:35:57 -06:00
Jack Nagel 2f78af07ca Pathname#extname returns a string 2013-12-14 09:35:57 -06:00
Adam Vandenberg 89e5585ee1 fix repo URL for brew search
Closes #25192.
2013-12-13 18:31:11 -08:00
Misty De Meo ae177adb2b brew: error out if bad xcode-select path given
Since a bad xcode-select path can cause many brew commands to freeze,
it's worth warning users and bailing out as early as possible.

The doctor check wasn't good enough, since the doctor could freeze
before the warning about this was ever printed.
2013-12-13 08:52:29 -08:00
Bovard Tiberi 814cc38393 doctor: fix PATH issues in comments
Closes #25170.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-12 20:07:39 -06:00
Jack Nagel d272e3c9aa bottle: only chdir into the cellar when tarring up the bottle 2013-12-12 19:46:37 -06:00
Jack Nagel 87172bd30b Build install summary in a separate method and print all at once
This prevents interleaved output, e.g. when running with Ruby warnings
turned on.
2013-12-12 15:42:35 -06:00
Jack Nagel 8a40b00435 Combine superenv tests 2013-12-12 15:42:35 -06:00
Jack Nagel 885d725dbf Initialize ivars to silence warnings 2013-12-12 15:42:35 -06:00
Jack Nagel 930e2c86dc Remove unused variables 2013-12-12 15:42:35 -06:00
Mike McQuaid ccf3d099aa uses: fix weird colon output.
Closes #24145.
2013-12-12 21:24:42 +00:00
Mike McQuaid 133b128afc audit: remove deprecated Python features.
These will be removed soon so don't check for them.
2013-12-12 21:07:41 +00:00
Jack Nagel 751c08e1f6 Put positive case first, drop redundant is_a? check 2013-12-12 14:53:53 -06:00
Jack Nagel 09235c3d6e Add another fails_with test 2013-12-12 14:53:53 -06:00
Jack Nagel 735d91f43d Report correct file/line in backtraces for attr_rw methods 2013-12-12 14:20:46 -06:00
Adam Vandenberg fbf6c23907 monkey around for emacs' code highlighter
The abv method has a construct that causes emacs to not highlight
the rest of pathname.rb, so move abv lower in the file.

Sorry.
2013-12-12 08:22:39 -08:00
Adam Vandenberg dee0dfae75 +x wrapper scripts, so they work during post-install 2013-12-12 08:21:22 -08:00
Jack Nagel b32702538a Simplify prefix test 2013-12-11 19:18:23 -06:00
Jack Nagel a412577c1b Set bottle version rather than re-parse it from the URL 2013-12-11 01:49:00 -06:00
Jack Nagel 03e87eb07e bottle: determine revision more reliably
Closes #25100.
2013-12-10 16:39:13 -06:00
Jack Nagel 69aae1fb8b versions: restore original constant
Before:

  f1 = Formula.factory('tree')
  f1.versions
  f2 = Formula.factory('tree')
  f1.class == f2.class # => false

After:

  f1 = Formula.factory('tree')
  f1.versions
  f2 = Formula.factory('tree')
  f1.class == f2.class # => true
2013-12-09 21:13:45 -06:00
Jack Nagel f6df3e46ea Implement hash equality for Version 2013-12-09 19:43:07 -06:00
Jack Nagel 1bde550346 bottle: re-raise interrupt after cleanup 2013-12-09 19:38:20 -06:00