brew info url shows calls extract version
This is so I can test the version detection logic before doing brew mk. It's a debug feature basically.
This commit is contained in:
parent
b94e10ce20
commit
dfc93c6a97
24
bin/brew
24
bin/brew
@ -286,12 +286,24 @@ begin
|
||||
if ARGV.empty?
|
||||
puts abv
|
||||
else
|
||||
o=__obj shift_formulae_from_ARGV[0]
|
||||
puts "#{o.name} #{o.version}"
|
||||
puts o.homepage
|
||||
if abv=abv(o.name)
|
||||
ohai "Installation"
|
||||
puts abv
|
||||
if ARGV[0][0..6] == 'http://'
|
||||
require 'brewkit'
|
||||
path=Pathname.new ARGV[0]
|
||||
basename=File.basename path, path.extname
|
||||
v=extract_version basename
|
||||
puts v
|
||||
else
|
||||
o=__obj shift_formulae_from_ARGV[0]
|
||||
puts "#{o.name} #{o.version}"
|
||||
puts o.homepage
|
||||
if abv=abv(o.name)
|
||||
ohai "Installation"
|
||||
puts abv
|
||||
end
|
||||
if o.caveats
|
||||
ohai 'Caveats'
|
||||
puts o.caveats
|
||||
end
|
||||
end
|
||||
if o.caveats
|
||||
ohai 'Caveats'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user