Merge pull request #19118 from gromgit/diagnostic/less-verbose-fnames
diagnostic: elide stray filenames in subdirs
This commit is contained in:
commit
fd0c8519bb
@ -188,11 +188,15 @@ module Homebrew
|
||||
files = Dir.chdir(dir) do
|
||||
(Dir.glob(pattern) - Dir.glob(allow_list))
|
||||
.select { |f| File.file?(f) && !File.symlink?(f) }
|
||||
.map { |f| File.join(dir, f) }
|
||||
.map do |f|
|
||||
f.sub!(%r{/.*}, "/*") unless @verbose
|
||||
File.join(dir, f)
|
||||
end
|
||||
.sort.uniq
|
||||
end
|
||||
return if files.empty?
|
||||
|
||||
inject_file_list(files.sort, message)
|
||||
inject_file_list(files, message)
|
||||
end
|
||||
|
||||
def check_for_stray_dylibs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user