Update Library/Homebrew/unversioned_cask_checker.rb

Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
This commit is contained in:
Bevan Kay 2021-07-13 20:02:57 +10:00 committed by GitHub
parent b8a6cbe410
commit 24c975f150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,18 +83,8 @@ module Homebrew
installer.extract_primary_container(to: dir)
info_plist_paths = []
apps.flat_map do |app|
top_level_info_plists(Pathname.glob(dir/"**"/app.source.basename/"Contents"/"Info.plist"))
.sort
.each { |match| info_plist_paths.push(match) }
end
qlplugins.flat_map do |qlplugin|
top_level_info_plists(Pathname.glob(dir/"**"/qlplugin.source.basename/"Contents"/"Info.plist"))
.sort
.each { |match| info_plist_paths.push(match) }
info_plist_paths = (apps + qlplugins).flat_map do |app|
top_level_info_plists(Pathname.glob(dir/"**"/app.source.basename/"Contents"/"Info.plist")).sort
end
info_plist_paths.each(&parse_info_plist)