Ignore Info.plist for nested apps.
This commit is contained in:
parent
c7ef48ac66
commit
cb2facfec1
@ -104,7 +104,10 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
info_plist_paths = apps.flat_map do |app|
|
info_plist_paths = apps.flat_map do |app|
|
||||||
Pathname.glob(dir/"**"/app.source.basename/"Contents"/"Info.plist")
|
Pathname.glob(dir/"**"/app.source.basename/"Contents"/"Info.plist").reject do |info_plist_path|
|
||||||
|
# Ignore nested apps.
|
||||||
|
info_plist_path.parent.parent.parent.ascend.any? { |p| p.extname == ".app" }
|
||||||
|
end.sort
|
||||||
end
|
end
|
||||||
|
|
||||||
info_plist_paths.each do |info_plist_path|
|
info_plist_paths.each do |info_plist_path|
|
||||||
@ -114,7 +117,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
pkg_paths = pkgs.flat_map do |pkg|
|
pkg_paths = pkgs.flat_map do |pkg|
|
||||||
Pathname.glob(dir/"**"/pkg.path.basename)
|
Pathname.glob(dir/"**"/pkg.path.basename).sort
|
||||||
end
|
end
|
||||||
|
|
||||||
pkg_paths.each do |pkg_path|
|
pkg_paths.each do |pkg_path|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user