Merge pull request #11597 from gromgit/cleanup_all_info_dir

cleaner: recursively delete info `dir`s
This commit is contained in:
Mike McQuaid 2021-06-25 12:22:22 +01:00 committed by GitHub
commit 91f2114bb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,10 @@ class Cleaner
[@f.bin, @f.sbin, @f.lib].each { |d| clean_dir(d) if d.exist? } [@f.bin, @f.sbin, @f.lib].each { |d| clean_dir(d) if d.exist? }
# Get rid of any info 'dir' files, so they don't conflict at the link stage # Get rid of any info 'dir' files, so they don't conflict at the link stage
info_dir_file = @f.info/"dir" Dir.glob(@f.info/"**/dir").each do |f|
info_dir_file = Pathname(f)
observe_file_removal info_dir_file if info_dir_file.file? && !@f.skip_clean?(info_dir_file) observe_file_removal info_dir_file if info_dir_file.file? && !@f.skip_clean?(info_dir_file)
end
rewrite_shebangs rewrite_shebangs