This commit is contained in:
Tim Visher 2022-04-28 00:09:18 -04:00
parent fbb3ccbfd6
commit 48db5eff25
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@ class Cleaner
# 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
Dir.glob(@f.info/"**/dir").each do |f| Dir.glob(@f.info/"**/dir").each do |f|
info_dir_file = Pathname(f) info_dir_file = Pathname(f)
observe_file_removal info_dir_file if info_dir_file.file? && info_dir_file != Pathname("#{@f.info}/#{@f.name}/dir") && !@f.skip_clean?(info_dir_file) next if info_dir_file == Pathname("#{@f.info}/#{@f.name}/dir")
observe_file_removal info_dir_file if info_dir_file.file? && !@f.skip_clean?(info_dir_file)
end end
rewrite_shebangs rewrite_shebangs

View File

@ -144,7 +144,7 @@ describe Cleaner do
f.info.mkpath f.info.mkpath
(f.info/"i686-elf").mkpath (f.info/"i686-elf").mkpath
(f.info/"#{f.name}").mkpath (f.info/ + f.name.to_s).mkpath
touch file touch file
touch arch_file touch arch_file