Commit Graph
857 Commits
Author SHA1 Message Date
Jack Nagel e17d2a24fc Use Hardware::CPU module 2013-06-14 10:34:17 -05:00
Simon Sigurdhsson ccbbed2ca8 Fix bug in brew list --pinned
Pinned formulae which were pinned at a previous version but then upgraded
would not be listed by `brew list --pinned`. This is due to the good old
"File.exist? thinks broken symlinks don't exist" gotcha, so the test in
the select block in list_pinned has been changed to check if the pin file
exists _or_ is a symlink.

Closes #20423.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-13 10:22:03 -05:00
Jack Nagel 387a7002ed Rename variables for clarity 2013-06-12 14:48:17 -05:00
Jack Nagel a2971aeb70 Extract search_taps method 2013-06-12 14:48:17 -05:00
Jack Nagel e3f12e1219 Pull tap list into a constant 2013-06-12 14:48:17 -05:00
Jack Nagel d6d112f227 Remove use of global variable 2013-06-12 14:48:17 -05:00
Jack Nagel cf37904f84 Rename method 2013-06-12 14:48:16 -05:00
Jack Nagel bceae883c7 Extract query construction 2013-06-12 14:48:16 -05:00
Jack Nagel c77e9d5cdf Use inspect instead of escaping quotes 2013-06-12 14:48:16 -05:00
Jack Nagel eb287869ef Move require out of method 2013-06-12 12:23:45 -05:00
Jack Nagel 453a581150 install: remove overcautious array manipulation 2013-06-12 09:02:20 -05:00
Jack Nagel 94736a8b1d Add doctor check for OS X > 10.8 2013-06-11 10:18:24 -05:00
Misty De Meo 691fcf0377 doctor: add check for osx-gcc-installer
This might not detect all cases, but should detect the two most
common ones.
2013-06-11 08:13:24 -05:00
Jack Nagel e37a828697 info: remove unreachable code 2013-06-09 15:32:08 -05:00
Jack Nagel 70069c5d75 Separate formula conflicts from requirements
Closes #20357.
2013-06-09 13:45:25 -05:00
Jack Nagel ece1eb21b0 deps: move recursive_deps_tree into Homebrew module 2013-06-09 12:59:42 -05:00
Adam Vandenberg f7fbbe79f4 Remove adamv-alt references.
Closes #20364.
2013-06-09 07:32:06 -07:00
Adam Vandenberg 4b014a4ed1 Consolidate sudo checks.
Closes #20318.
2013-06-08 20:44:56 -07:00
Jack Nagel 455916b1c7 Make Test::Unit assertions available in formula tests
Closes #18753.
Closes #20358.
2013-06-08 21:31:44 -05:00
Mike McQuaid 3a217e6feb brew-bottle: merge arg for bottle metadata files.
Closes #20266.
2013-06-08 16:48:43 +01:00
Mike McQuaid eb19854903 brew-bottle: split output and use a bottle object. 2013-06-08 16:47:11 +01:00
Mike McQuaid 3ec2c72eb2 brew-test: add five minute timeout. 2013-06-08 16:41:44 +01:00
Samuel John 05b3fbc810 Improved audit of python stuff 2013-06-07 17:58:55 +02:00
Jack Nagel f155d31943 Decouple bottle tags from MacOS.cat 2013-06-06 16:02:27 -05:00
Jack Nagel e88fe41795 cleanup: use String#[] instead of "captures.first rescue nil" 2013-06-06 12:34:47 -05:00
Jack Nagel 96f3f5dd98 Remove postgresql and mysql audit noise
Closes #20159.
2013-06-04 11:15:31 -05:00
Samuel John 0b50110107 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Adam Vandenberg 577cb5a2b2 Audit url/devel/head for redundant :using 2013-05-27 22:25:34 -07:00
Adam Vandenberg 743c8286bf Add brew search --debian <f> 2013-05-27 17:32:27 -07:00
Jack Nagel 8080d17098 audit: drop redundant 'each' after 'grep' 2013-05-27 18:31:18 -05:00
Jack Nagel a377cad783 doctor: check git SSL settings on <= 10.5 2013-05-27 10:06:45 -05:00
Jack Nagel 95119c2deb doctor: combine git origin checks 2013-05-26 17:55:34 -05:00
Jack Nagel 1f699a6902 doctor: combine git existence and version checks 2013-05-26 17:48:12 -05:00
Jack Nagel a22fc2e015 doctor: style nits 2013-05-24 19:53:39 -05:00
Jack Nagel d6ecdb90a9 outdated: yield version list rather than recreate it 2013-05-24 11:13:27 -05:00
Jack Nagel 19863c92fd upgrade: fix expansion of options for top-level formula objects
Fixes #20045.
2013-05-24 10:33:08 -05:00
Jack Nagel 976147833b Directory, not folder 2013-05-23 23:33:36 -05:00
Jack Nagel c08d8dce56 doctor: reorganize check_for_macgpg2 2013-05-23 23:28:16 -05:00
Jack Nagel 9f2f3a305b doctor: simplify trailing slash checks 2013-05-23 23:07:20 -05:00
Jack Nagel a6005715b8 doctor: extract helper from stray file checks 2013-05-23 22:57:00 -05:00
Jack Nagel e8cec18e30 doctor: fix check_for_broken_symlinks
Fixes #20000.
2013-05-23 11:28:16 -05:00
Adam Vandenberg cd01e43c19 Allow brew log on deleted formulae.
Closes #19995.
2013-05-23 09:21:33 -07:00
Jack Nagel 22523c502b doctor: remove stale OS version check
Closes #19959.
2013-05-22 23:33:22 -05:00
Jack Nagel 950c9b0bee Refactor Xcode/CLT version checks 2013-05-22 22:30:38 -05:00
Daniel Lee Harple 88d5a5a632 Remove unnecessary rescue-all exception handling
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:05 -05:00
Daniel Lee Harple a113ebbfee Check GitHub API rate limit instead of silently failing
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:04 -05:00
Daniel Lee Harple 46941be352 Pass a User-Agent when fetching data from the GitHub API
See <http://developer.github.com/v3/#user-agent-required>.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:01 -05:00
Jack Nagel dbe6134a0a link: extract keg-only check into a helper method 2013-05-20 21:55:01 -05:00
Jack Nagel 5e422741f6 upgrade: fix typo 2013-05-18 22:11:19 -05:00
Jack Nagel 13208d7c1a upgrade: use a method rather than a boolean flag 2013-05-18 22:09:15 -05:00