Look for all packages if specified packages are not found.
This commit is contained in:
parent
853b33bcda
commit
f709a34d28
@ -100,9 +100,8 @@ module Homebrew
|
|||||||
|
|
||||||
info_plist_paths.each(&parse_info_plist)
|
info_plist_paths.each(&parse_info_plist)
|
||||||
|
|
||||||
pkg_paths = pkgs.flat_map do |pkg|
|
pkg_paths = pkgs.flat_map { |pkg| Pathname.glob(dir/"**"/pkg.path.basename).sort }
|
||||||
Pathname.glob(dir/"**"/pkg.path.basename).sort
|
pkg_paths = Pathname.glob(dir/"**"/"*.pkg").sort if pkg_paths.empty?
|
||||||
end
|
|
||||||
|
|
||||||
pkg_paths.each do |pkg_path|
|
pkg_paths.each do |pkg_path|
|
||||||
Dir.mktmpdir do |extract_dir|
|
Dir.mktmpdir do |extract_dir|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user