895 Commits

Author SHA1 Message Date
phinze
9a94a77fa3 Properly define tapped formulae in update
A tapped formula is a ruby file present:

  - in the root of the tap
  - in directory of the tap called Formula
  - in a directory of the tap called HomebrewFormula

And nowhere else. This corrects an overzealous definition of tapped
formula in the updater. (the correct definition has been in Pathname
since e613cbe5783cea2abb8100b56c22126a1ab6b9f2)

Refs Homebrew/homebrew#19743.
Closes Homebrew/homebrew#21087.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-07-09 20:52:51 -05:00
Adam Vandenberg
527f80b83d audit more template comments 2013-07-05 12:05:29 -07:00
Adam Vandenberg
d9487a96ea Add audit for leading 'v' in version numbers 2013-07-04 08:49:10 -07:00
Adam Vandenberg
1e6e1dde4c Don't always show an error at the end of brew versions 2013-07-03 10:06:11 -07:00
Adam Vandenberg
7e54d013e7 audit default template comments 2013-07-03 09:20:41 -07:00
Adam Vandenberg
472b6e4fe1 versions: pass string to factory
Closes Homebrew/homebrew#20951.
2013-07-01 16:46:05 -07:00
Jack Nagel
59fdcfd4d0 Better behavior for failed connections in brew search
Fixes Homebrew/homebrew#20868.
2013-07-01 17:00:08 -05:00
Mike McQuaid
621c44dbd2 CLT is just CLT now; not "for Xcode".
References Homebrew/homebrew#17383.
2013-07-01 19:02:32 +01:00
Adam Vandenberg
fbe03d2cc1 audit sourceforge URLs even harder 2013-06-30 12:17:47 -07:00
Jack Nagel
5b75c73df6 Do this in a saner way 2013-06-29 21:36:04 -05:00
Jack Nagel
936f9487b1 doctor: don't pass pathnames to Formula.factory
Fixes Homebrew/homebrew#20908.
2013-06-29 21:26:49 -05:00
Adam Vandenberg
8e944d5728 Add 'unload' 2013-06-29 16:44:45 -07:00
Jack Nagel
dbe04be448 Don't attempt to audit md5 checksums, but complain if they are used 2013-06-29 15:36:44 -05:00
Jack Nagel
033ef09518 Detect versions in tag specs
Closes Homebrew/homebrew#18300.
Closes Homebrew/homebrew#20891.
2013-06-28 21:17:23 -05:00
Paul Fitzpatrick
61076c1a11 brew --env: Add missing CPATH environment variable
Closes Homebrew/homebrew#20813.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-27 21:00:22 -07:00
Jack Nagel
0f2c5f33a2 Add an exception for imagemagick in build-time dep audit 2013-06-27 21:17:28 -05:00
Jack Nagel
919aac0b89 Add syntax sugar for MPIDependency
Closes Homebrew/homebrew#20797.
2013-06-26 22:18:13 -05:00
Adam Vandenberg
1cd3149677 Be explicit about passing formulae names or instances to Tab 2013-06-26 19:58:08 -07:00
Misty De Meo
5627ed21ce info: Only print Cellar info if it exists 2013-06-26 20:19:55 -05:00
Jack Nagel
cf5c97bbcb Don't use 'obj == nil' 2013-06-26 18:47:00 -05:00
Jack Nagel
a89c501486 audit: don't try to audit missing deps
Refs Homebrew/homebrew#20829.
2013-06-26 18:09:12 -05:00
Jack Nagel
ce4b621874 Clean up brew options 2013-06-26 15:11:34 -05:00
Adam Vandenberg
dbc1df51f4 Reword uses comment 2013-06-26 11:33:31 -07:00
Jack Nagel
c8ae97dde8 uses: fail fast if invalid formula names are given
Fixes Homebrew/homebrew#20819.
2013-06-26 12:59:46 -05:00
Adam Vandenberg
faaac9482e Fix info --github
Closes Homebrew/homebrew#20780.
2013-06-25 11:21:04 -07:00
Adam Vandenberg
371c1acfe4 Add 'From:' to GitHub url for formula
Closes Homebrew/homebrew#20724.
2013-06-24 07:43:29 -07:00
Adam Vandenberg
41352cf1a8 Update audit for Fortran dependency 2013-06-24 07:38:25 -07:00
Adam Vandenberg
ad320c96fd irb: pass strings to factory, not symbols 2013-06-23 13:07:55 -07:00
Adam Vandenberg
3dd2715ec8 remove no-op code in bottle.rb
ARGV.formulae returns formulae, so no need to pass through factory
2013-06-23 13:02:10 -07:00
Jack Nagel
083b3c84d0 Add Utils::JSON to wrap the JSON implementation 2013-06-22 21:34:02 -05:00
Jack Nagel
2356a6d874 deps: allow "--installed --tree" 2013-06-22 12:54:46 -05:00
Jack Nagel
a02d5f33b4 deps: use OpenStruct to capture the mode 2013-06-22 12:54:46 -05:00
Jack Nagel
c2faf2a0ca deps: remove need for Array extension 2013-06-22 12:54:45 -05:00
Jack Nagel
6790f6adb0 deps: extract output methods 2013-06-22 12:54:45 -05:00
Mike McQuaid
79f9da3c22 bottle: sort --merge output in OS X version order. 2013-06-22 11:13:59 +01:00
Jack Nagel
c0eb1f10de Don't clean up lockfiles if the directory doesn't exist
Fixes Homebrew/homebrew#20673.
2013-06-21 18:38:39 -05:00
Jack Nagel
3b56cb02ea Clean up lockfiles 2013-06-21 15:42:14 -05:00
Samuel John
d456d42813 doctor: share/python no longer needed in PATH
Check for HOMEBREW_PREFIX/share/python and python3
in PATH and tell about the new location and that
files from there can be removed. Also instructions
on how to upgrade python packages are given.
2013-06-19 12:27:50 +02:00
Jack Nagel
50db35e5d3 Use Hardware::CPU module 2013-06-14 10:34:17 -05:00
Simon Sigurdhsson
776c08490f 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 Homebrew/homebrew#20423.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-13 10:22:03 -05:00
Jack Nagel
630aa27c56 Rename variables for clarity 2013-06-12 14:48:17 -05:00
Jack Nagel
5482092bd0 Extract search_taps method 2013-06-12 14:48:17 -05:00
Jack Nagel
e0fba99699 Pull tap list into a constant 2013-06-12 14:48:17 -05:00
Jack Nagel
c30f00c37c Remove use of global variable 2013-06-12 14:48:17 -05:00
Jack Nagel
d1a1a3b031 Rename method 2013-06-12 14:48:16 -05:00
Jack Nagel
1d1c292bcb Extract query construction 2013-06-12 14:48:16 -05:00
Jack Nagel
90768d03d2 Use inspect instead of escaping quotes 2013-06-12 14:48:16 -05:00
Jack Nagel
13a2ceef5c Move require out of method 2013-06-12 12:23:45 -05:00
Jack Nagel
2045217a68 install: remove overcautious array manipulation 2013-06-12 09:02:20 -05:00
Jack Nagel
652e0982f0 Add doctor check for OS X > 10.8 2013-06-11 10:18:24 -05:00