Silence "* interpreted as argument prefix" warnings
This commit is contained in:
parent
4a281cd5cf
commit
baffb31aab
@ -244,7 +244,7 @@ end
|
|||||||
class Version
|
class Version
|
||||||
def slice *args
|
def slice *args
|
||||||
opoo "Calling slice on versions is deprecated, use: to_s.slice"
|
opoo "Calling slice on versions is deprecated, use: to_s.slice"
|
||||||
to_s.slice *args
|
to_s.slice(*args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -134,13 +134,13 @@ class BuildError < Homebrew::InstallationError
|
|||||||
onoe "#{formula.name} did not build"
|
onoe "#{formula.name} did not build"
|
||||||
unless (logs = Dir["#{ENV['HOME']}/Library/Logs/Homebrew/#{formula}/*"]).empty?
|
unless (logs = Dir["#{ENV['HOME']}/Library/Logs/Homebrew/#{formula}/*"]).empty?
|
||||||
print "Logs: "
|
print "Logs: "
|
||||||
puts *logs.map{|fn| " #{fn}"}
|
puts logs.map{|fn| " #{fn}"}.join("\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
puts
|
puts
|
||||||
unless issues.empty?
|
unless issues.empty?
|
||||||
puts "These open issues may also help:"
|
puts "These open issues may also help:"
|
||||||
puts *issues.map{ |s| " #{s}" }
|
puts issues.map{ |s| " #{s}" }.join("\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user