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