Commit Graph
45 Commits
Author SHA1 Message Date
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 724789d9f3 info: simplify keg listing 2013-05-10 23:45:36 -05:00
Jack Nagel 0936cacd0b info: improve dependency listing 2013-05-10 23:45:06 -05:00
Jack Nagel 4e16c3de7c info: re-raise on blacklist miss 2013-05-02 21:34:48 -05:00
Adam Vandenberg 85fe4bd883 info: try blacklist for unknown formula names
Closes #17399.
2013-04-29 10:12:40 -07:00
Simon Sigurdhsson 49bc73a4ef brew-info: Add pinned status to info.
Closes #18851.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-31 19:27:17 +01:00
Jack Nagel 1e9fb46212 Suppress ambiguous argument and grouped expression warnings 2013-03-28 17:37:29 -05:00
Jack Nagel ec5a6eb2f1 info: make use of Tab#to_s
Closes #18788.
2013-03-28 14:21:52 -05:00
Mike McQuaid 5010dca995 brew-info: specify whether poured or built.
- Store in the tab if a bottle was poured for the build.
- Add an additional line of output to `brew info` outputting whether
  the formula was built from source or poured from a bottle.

Closes #18430.
Closes #18475.
2013-03-20 23:06:38 +00:00
Mike McQuaid 041060e28f Support 32-bit 10.6 bottles.
Closes #17735.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Jack Nagel 012c3bca2e info: open history pages for all specified formulae
Closes #17852.
2013-02-16 21:20:17 -06:00
Jack Nagel c45168fec7 info: sort conflicts consistently 2013-01-14 14:57:50 -06:00
Jack Nagel 6497ab24ea Restore keg-only caveats
Fixes #16989.
2013-01-14 14:57:42 -06: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 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
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
Misty De Meo 3344229122 info: Add JSON output
Output JSON with the --json=v1 option. Output is in an array, and
supports one or more formulae (or all, with the --all option).

Why 'v1'? The format is unstable, presumably we'll deprecate it
someday. It should be solid by Homebrew 1.0.

Closes #13299.
2012-09-17 20:01:37 -05:00
Mike McQuaid 18fb888ff3 Miscellaneous bottle code cleanup. 2012-08-25 13:08:46 -07:00
Jack Nagel 2eef46ae5a Add :when_xquartz_installed as a keg-only reason
Using :when_xquartz_installed will tell the keg-only machinery to activate
if XQuartz is installed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12 17:28:15 -05:00
Adam Vandenberg 07507228a2 Fix info/options for new options dsl 2012-08-09 09:24:27 -07:00
Jack Nagel e3e8d7072c Simplify conditional
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 15:33:29 -05:00
Jack Nagel 0f19fc4987 Simplify printing conflicts in brew info
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 14:24:54 -05:00
Adam Vandenberg 0b568e18e1 fix info command 2012-08-07 12:23:25 -07:00
Max Howell 08fddfdbc2 Don't error out if never brew updated
Fixes #12944.
2012-08-06 16:44:11 -04:00
Max Howell 12bcd19ee0 Show options for foo with brew info foo
About time right?
2012-08-04 15:40:36 -04:00
Misty De Meo 2814e3a9fa Add conflicts_with DSL method
conflicts_with is a thin wrapper around Requirement which simplifies
marking conflicts between formulae.

Closes #13687.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-30 13:47:12 -03:00
Jack Nagel 94d0f237f1 info: display available formula specs 2012-07-04 22:47:33 -05:00
Jack Nagel 2fb94e4d9b Use 'which' helper method more
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-13 19:28:03 -05:00
Maurice Kelly 119f18600b info: handle git:// URLs in origin remote
The URL being constructed is only able to extract the correct username
when git@ or https:// URLs are found as the origin remote. This change
allows git:// to be used as well.

Signed-off-by: Maurice Kelly <osv-github@chatswood.org.uk>

Closes #11670.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-15 14:41:41 -05:00
Jack Nagel ddfbaab578 info: output correct URL for tapped dupes
Tapped formulae that dupe those in core now display the correct URL when
invoked like `brew info homebrew/dupes/openssl`.

This also fixes the broken `brew info` test.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06 23:54:41 -05:00
Jack Nagel c7d9a09a96 info: always indicate if a keg is linked
We mark the linked keg with an asterisk when multiple kegs exist, but
not when there is only a single keg. Start marking even in this case,
giving consistent behavior and a reliable indicate of the link status.

Fixes #11300.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29 21:30:13 -05:00
Max Howell f8e70f93c3 brew info understands taps
Note I removed some of the code that changed the URL to be that of the github.user. Because this doesn't make any sense really. We want people to reference the commit history for whatever fork of homebrew they have checked out. So this is now what it does.
2012-03-16 21:06:16 +00:00
Jack Nagel aee6acecdc info: always mark currently linked keg with *
When multiple kegs are installed, `brew info` marks a keg with an
asterisk if f.installed_prefix == keg, but this is only true if either
HEAD or the newest version of the formula is installed. This isn't
always useful, so let's mark the currently linked keg with an asterisk
regardless of the version.

Obviously, keg-only formula will never be marked, but this is probably a
feature. When multiple keg-only kegs exist, chances are that they are
each being utilized by something, so there isn't really a "used" and
"unused" version.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03 19:50:20 -06:00
Jack Nagel 5079980d0c info: display used options for all installed kegs
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03 19:50:19 -06:00
Adam Vandenberg f9156eeabd Omit empty caveats 2011-12-20 20:11:54 -08:00
Jack Nagel 4afc05483c info: display used options for installed formulae
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-13 23:27:53 -06:00
Charlie Sharpsteen 06fbecbeae Centralize definition of rack in formula.rb
`rack` is a commonly used alias for `formula.prefix.parent`---so common that it
gets defined and used quite a bit. This patch makes `rack` an official method
of the `Formula` class.
2011-09-16 08:55:38 -07:00
Jack Nagel 54dc96d840 Add keg-only text to brew info output
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-11 11:46:35 -07:00
Jack Nagel d2330d6748 Fix brew-info when on branch master and github.user set
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 19:30:19 -07:00
Sebastian Staudt a91c050f00 Fixed reading branch name
The git command now uses --git-dir instead of --work-tree.
Using --work-tree won't work if you are inside another Git repository.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-18 22:30:48 -07:00
Joshua Peek 474e6277bc brew info should fetch remote formula info
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-14 10:18:39 -07:00
Adam Vandenberg 05d175d51f Use + instead of /. 2011-03-12 11:55:07 -08:00
Max Howell 9afc85ad33 Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00