Move verbose ARGV display to install.rb

This works better as it comes after any keg-only deps change ENV, but also it needs to happen after brewkit is required and that only happens in install now.
This commit is contained in:
Max Howell 2009-10-15 09:08:26 +01:00
parent ca1a6492bc
commit 73d0ee4358
2 changed files with 7 additions and 7 deletions

View File

@ -51,6 +51,13 @@ def install f
end
end
if ARGV.verbose?
ohai "Build Environment"
%w[PATH CFLAGS LDFLAGS CPPFLAGS MAKEFLAGS CC CXX MACOSX_DEPLOYMENT_TARGET].each do |f|
puts "#{f}: #{ENV[f]}" unless ENV[f].to_s.empty?
end
end
build_time = nil
begin
f.brew do

View File

@ -101,13 +101,6 @@ begin
raise "Interactive mode can only be used with one formula argument"
end
if ARGV.verbose?
ohai "Build Environment"
%w[PATH CFLAGS LDFLAGS CPPFLAGS MAKEFLAGS CC CXX MACOSX_DEPLOYMENT_TARGET].each do |f|
puts "#{f}: #{ENV[f]}" unless ENV[f].to_s.empty?
end
end
warn_about_macports_or_fink # keep warning before dependency resolution
unless ARGV.force?