diff --git a/Library/Homebrew/test/support/fixtures/test.dmg.gz b/Library/Homebrew/test/support/fixtures/test.dmg.gz index 887cb330d1..9d000cfb14 100644 Binary files a/Library/Homebrew/test/support/fixtures/test.dmg.gz and b/Library/Homebrew/test/support/fixtures/test.dmg.gz differ diff --git a/Library/Homebrew/unpack_strategy/dmg.rb b/Library/Homebrew/unpack_strategy/dmg.rb index f6969fb7cf..b12a5ab2c9 100644 --- a/Library/Homebrew/unpack_strategy/dmg.rb +++ b/Library/Homebrew/unpack_strategy/dmg.rb @@ -14,18 +14,20 @@ module UnpackStrategy module Bom extend SystemCommand::Mixin - DMG_METADATA = T.let(Set.new(%w[ - .background - .com.apple.timemachine.donotpresent - .com.apple.timemachine.supported - .DocumentRevisions-V100 - .DS_Store - .fseventsd - .MobileBackups - .Spotlight-V100 - .TemporaryItems - .Trashes - .VolumeIcon.icns + DMG_METADATA = T.let(Set.new([ + ".background", + ".com.apple.timemachine.donotpresent", + ".com.apple.timemachine.supported", + ".DocumentRevisions-V100", + ".DS_Store", + ".fseventsd", + ".MobileBackups", + ".Spotlight-V100", + ".TemporaryItems", + ".Trashes", + ".VolumeIcon.icns", + ".HFS+ Private Directory Data\r", # do not remove `\r`, it is a part of directory name + ".HFS+ Private Data\r", ]).freeze, T::Set[String]) private_constant :DMG_METADATA