Update info command for generalized bottle implementation
This commit is contained in:
parent
a96c1a2afc
commit
7f875419c6
@ -77,10 +77,19 @@ module Homebrew extend self
|
|||||||
|
|
||||||
def info_formula f
|
def info_formula f
|
||||||
specs = []
|
specs = []
|
||||||
stable = "stable #{f.stable.version}" if f.stable
|
|
||||||
stable += " (bottled)" if f.bottle
|
if stable = f.stable
|
||||||
specs << stable if stable
|
s = "stable #{stable.version}"
|
||||||
specs << "devel #{f.devel.version}" if f.devel
|
s += " (bottled)" if stable.bottled?
|
||||||
|
specs << s
|
||||||
|
end
|
||||||
|
|
||||||
|
if devel = f.devel
|
||||||
|
s = "devel #{stable.version}"
|
||||||
|
s += " (bottled)" if devel.bottled?
|
||||||
|
specs << s
|
||||||
|
end
|
||||||
|
|
||||||
specs << "HEAD" if f.head
|
specs << "HEAD" if f.head
|
||||||
|
|
||||||
puts "#{f.name}: #{specs*', '}#{' (pinned)' if f.pinned?}"
|
puts "#{f.name}: #{specs*', '}#{' (pinned)' if f.pinned?}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user