Make one function

This commit is contained in:
Lukas Oberhuber 2022-07-26 10:00:05 +01:00
parent e1ea9da507
commit 2d4c792b0b

View File

@ -64,19 +64,17 @@ class Keg
end end
def dsymutil def dsymutil
binary_executable_or_library_files.each { |file| dsymutil_binary(file) } binary_executable_or_library_files.each do |file|
end odebug "Extracting symbols #{file}"
def dsymutil_binary(file) result = system_command("dsymutil", args: [file])
odebug "Extracting symbols #{file}" next if result.success?
result = system_command("dsymutil", args: [file]) # If it fails again, error out
return if result.success? onoe <<~EOS
Failed to extract symbols from #{file}:
# If it fails again, error out #{result.stderr}
onoe <<~EOS EOS
Failed to extract symbols from #{file}: end
#{result.stderr}
EOS
end end
end end