Update Library/Homebrew/unversioned_cask_checker.rb
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
This commit is contained in:
parent
b8a6cbe410
commit
24c975f150
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user