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
|
||||
specs = []
|
||||
stable = "stable #{f.stable.version}" if f.stable
|
||||
stable += " (bottled)" if f.bottle
|
||||
specs << stable if stable
|
||||
specs << "devel #{f.devel.version}" if f.devel
|
||||
|
||||
if stable = f.stable
|
||||
s = "stable #{stable.version}"
|
||||
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
|
||||
|
||||
puts "#{f.name}: #{specs*', '}#{' (pinned)' if f.pinned?}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user