More core files style updates
This commit is contained in:
parent
13d544e11e
commit
d62095710f
@ -22,7 +22,7 @@ class Cleaner
|
||||
|
||||
# Get rid of any info 'dir' files, so they don't conflict at the link stage
|
||||
info_dir_file = @f.info + "dir"
|
||||
if info_dir_file.file? and !@f.skip_clean? info_dir_file
|
||||
if info_dir_file.file? && !@f.skip_clean?(info_dir_file)
|
||||
observe_file_removal info_dir_file
|
||||
end
|
||||
|
||||
|
||||
@ -576,7 +576,7 @@ class Checks
|
||||
end
|
||||
|
||||
def check_xcode_select_path
|
||||
if !MacOS::CLT.installed? and !File.file? "#{MacOS.active_developer_dir}/usr/bin/xcodebuild"
|
||||
if !MacOS::CLT.installed? && !File.file?("#{MacOS.active_developer_dir}/usr/bin/xcodebuild")
|
||||
path = MacOS::Xcode.bundle_path
|
||||
path = "/Developer" if path.nil? || !path.directory?
|
||||
<<-EOS.undent
|
||||
|
||||
@ -60,7 +60,7 @@ module Homebrew
|
||||
puts_columns(tap_results)
|
||||
count = local_results.length + tap_results.length
|
||||
|
||||
if count == 0 and !blacklisted? query
|
||||
if count == 0 && !blacklisted?(query)
|
||||
puts "No formula found for #{query.inspect}."
|
||||
begin
|
||||
GitHub.print_pull_requests_matching(query)
|
||||
|
||||
@ -9,7 +9,7 @@ class Keg
|
||||
|
||||
each_install_name_for(file) do |bad_name|
|
||||
# Don't fix absolute paths unless they are rooted in the build directory
|
||||
next if bad_name.start_with? "/" and !bad_name.start_with? HOMEBREW_TEMP.to_s
|
||||
next if bad_name.start_with? "/" && !bad_name.start_with?(HOMEBREW_TEMP.to_s)
|
||||
|
||||
new_name = fixed_name(file, bad_name)
|
||||
change_install_name(bad_name, new_name, file) unless new_name == bad_name
|
||||
|
||||
@ -39,10 +39,12 @@ if OS.mac? && MacOS.version < :mavericks && MacOS.active_developer_dir == "/"
|
||||
EOS
|
||||
end
|
||||
|
||||
case HOMEBREW_PREFIX.to_s when "/", "/usr"
|
||||
case HOMEBREW_PREFIX.to_s
|
||||
when "/", "/usr"
|
||||
# it may work, but I only see pain this route and don't want to support it
|
||||
abort "Cowardly refusing to continue at this prefix: #{HOMEBREW_PREFIX}"
|
||||
end
|
||||
|
||||
if OS.mac? and MacOS.version < "10.6"
|
||||
abort <<-EOABORT.undent
|
||||
Homebrew requires Snow Leopard or higher. For Tiger and Leopard support, see:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user