From ac8dd9ae7db7fd1aa6854f5d756b58b42cb3ceb6 Mon Sep 17 00:00:00 2001 From: FX Coudert <fxcoudert@gmail.com> Date: Sat, 4 Mar 2017 14:05:32 +0100 Subject: [PATCH] Don't list duplicate dylibs for universal --- Library/Homebrew/os/mac/mach.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb index 4113a06018..9b53c49797 100644 --- a/Library/Homebrew/os/mac/mach.rb +++ b/Library/Homebrew/os/mac/mach.rb @@ -54,7 +54,7 @@ module MachOShim def dynamically_linked_libraries(except: :none) lcs = macho.dylib_load_commands.reject { |lc| lc.type == except } - lcs.map(&:name).map(&:to_s) + lcs.map(&:name).map(&:to_s).uniq end def dylib_id -- GitLab