5327 Commits

Author SHA1 Message Date
Jack Nagel
ccc0eb98ba Escape prefix when interpolating into regexp 2013-12-27 13:01:41 -06:00
Christian Moritz
b50d5126ee brew-test-bot: check requirements default_formulae
With this brew-test-bot doesn't skip builds, if a requirement isn't
satisfied but a default_formula is specified.

This default_formula is already in dependencies, because of brew deps.

Closes Homebrew/homebrew#25398.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-23 18:35:50 +00:00
Jack Nagel
3cec3e36e9 cleaner: use ObserverPathnameExtension 2013-12-22 13:43:51 -06:00
Jack Nagel
095d83d10b cleaner: reorganize clean_dir to avoid repeated conditional 2013-12-22 13:43:50 -06:00
Jack Nagel
676f29d757 Drop unnecessary string conversion in skip_clean 2013-12-22 13:43:00 -06:00
Jack Nagel
5e1cbb50c1 cleaner: add more tests for current behavior 2013-12-22 13:43:00 -06:00
Jack Nagel
d19934dcb7 cleaner: clean up broken and orphaned symlinks 2013-12-21 23:28:04 -06:00
Jack Nagel
f55e93d9fc cleaner: add test to demonstrate that empty prefixes are removed 2013-12-21 23:28:03 -06:00
Jack Nagel
8430307fa5 cleaner: add tests to document current pruning behavior 2013-12-21 23:28:03 -06:00
Jack Nagel
b57e6006a6 cleaner: add tests to demonstrate some current failures 2013-12-21 23:28:03 -06:00
Jack Nagel
554490f9e0 cleaner: slightly less coupling in tests 2013-12-21 23:28:03 -06:00
Jack Nagel
e480206464 cleaner: fix permission debug output 2013-12-21 23:28:03 -06:00
Jack Nagel
0bb7c4d3ed prune: remove unnecessary .sort 2013-12-21 21:37:26 -06:00
Mike McQuaid
b2287999e1 brew-test-bot: delete takes string, not regex. 2013-12-20 15:38:42 +00:00
Mike McQuaid
4401ee0819 brew-test-bot: remove form feed properly. 2013-12-20 15:22:00 +00:00
Mike McQuaid
f853ec7365 brew-test-bot: use install --only-dependencies. 2013-12-19 23:03:12 +00:00
Jack Nagel
76a45df325 Note when --only-dependencies is a no-op 2013-12-19 16:43:46 -06:00
Steven Peters
b524943226 install: add --only-dependencies option
The traditional approach to installing the dependencies of a formula is
the following:

  brew install `brew deps formula`

This approach ignores any options that are specified in the parent
formula. This pull request adds a --only-dependencies option to brew
install that installs the dependencies of a formula with optional flags,
but returns before installing the parent formula.

Closes Homebrew/homebrew#25272.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-19 16:43:42 -06:00
Mike McQuaid
d03100c615 brew-test-bot: regex to delete invalid XML chars. 2013-12-18 09:39:58 +00:00
Adam Vandenberg
8a2464bf25 Move comparepdf to boneyard
Upstream is no longer maintaining this software, and it does not
build with Xcode 5.

Closes Homebrew/homebrew#24911.
2013-12-17 19:16:03 -08:00
Jack Nagel
a6602740f8 bottle: extract method for enumerating files that match a string
This brings a (small) performance improvement as we yield the files as
they are output by fgrep rather than waiting until fgrep is done to do
any work.
2013-12-17 21:13:23 -06:00
Jack Nagel
4e11656e01 versions: improve performance of rev_list 2013-12-17 20:43:45 -06:00
Mike McQuaid
268e32e37c doctor: don't complain about unmigrated remote. 2013-12-17 23:40:21 +00:00
Mike McQuaid
4b7f435a00 doctor: fix autocrlf set command.
Fixes Homebrew/homebrew#25282.
2013-12-17 16:34:01 +00:00
Mike McQuaid
8ccfd06ce2 brew-test-bot: strip more unicode. 2013-12-17 16:33:38 +00:00
Mike McQuaid
5751b9e66c doctor: add instructions for remote migration. 2013-12-17 16:25:51 +00:00
Adam Vandenberg
371858f419 add nlopt to migration 2013-12-16 20:23:12 -08:00
Adam Vandenberg
6aa2277119 options: show --HEAD and --devel when appropriate
Closes Homebrew/homebrew#24680.
2013-12-15 19:42:08 -08:00
Chris Kampmeier
2635817ca8 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 Homebrew/homebrew#25230.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-15 17:20:45 +00:00
Misty De Meo
d1d6451a6a 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
a1728a8174 doctor: check for migrated origin Git remote.
Closes Homebrew/homebrew#25211.
2013-12-14 23:11:16 +00:00
Mike McQuaid
228a5a545a update: rewrite origin to point to Homebrew org. 2013-12-14 23:10:20 +00:00
Mike McQuaid
2afa1c3b86 tap: change core formula tap naming. 2013-12-14 23:10:20 +00:00
Jack Nagel
f459245e6d bottle: remove unused require 2013-12-14 15:43:15 -06:00
Jack Nagel
d75577a239 bottle: avoid keeping entire strings output in memory 2013-12-14 15:43:15 -06:00
Mike McQuaid
d7c13f84b6 Update string references to mxcl/homebrew. 2013-12-14 18:18:35 +00:00
Mike McQuaid
4c2e7b1659 Update docs, comment mxcl/homebrew refs. 2013-12-14 18:18:35 +00:00
Jack Nagel
3656f59508 Add HOMEBREW_TEMP to testing environment 2013-12-14 09:47:32 -06:00
Jack Nagel
f4e23b2227 Remove unnecessary captures in otool regexp 2013-12-14 09:35:58 -06:00
Jack Nagel
ce19fa2223 Unify install name parsing 2013-12-14 09:35:58 -06:00
Jack Nagel
de20814162 keg: use start_with? instead of regexp match 2013-12-14 09:35:58 -06:00
Jack Nagel
c6c7b9b165 Extract HOMEBREW_TEMP constant 2013-12-14 09:35:58 -06:00
Jack Nagel
68f6936070 Move Pathname#dynamically_linked_libraries to mach module 2013-12-14 09:35:58 -06:00
Jack Nagel
f458fa9e9a keg: add debug output to install name machinery 2013-12-14 09:35:58 -06:00
Jack Nagel
c31512fe33 keg: the argument to find_dylib is already a Pathname 2013-12-14 09:35:58 -06:00
Jack Nagel
3662a2765d keg: combine loops in relocate_install_names 2013-12-14 09:35:58 -06:00
Jack Nagel
f6979cccb2 keg: eliminate reject_proc, make callers determine which names to fix 2013-12-14 09:35:58 -06:00
Jack Nagel
25632546a4 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
b86e98426e 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
f4618f0147 keg: factor out dylib id calculation 2013-12-14 09:35:57 -06:00