[cleaner.rb] clean_dirs: Remove symbolic links if they point to static libra-
ries. Reopens Homebrew/homebrew-core#35269. Closes Homebrew/homebrew-core#35269.
This commit is contained in:
parent
2062c5191d
commit
72a95edcfb
@ -88,10 +88,12 @@ class Cleaner
|
|||||||
|
|
||||||
Find.prune if @f.skip_clean? path
|
Find.prune if @f.skip_clean? path
|
||||||
|
|
||||||
next if path.symlink? || path.directory?
|
next if path.directory?
|
||||||
|
|
||||||
if path.extname == ".la"
|
if path.extname == ".la"
|
||||||
path.unlink
|
path.unlink
|
||||||
|
elsif path.symlink?
|
||||||
|
# Skip it.
|
||||||
elsif path.basename.to_s == "perllocal.pod"
|
elsif path.basename.to_s == "perllocal.pod"
|
||||||
# Both this file & the .packlist one below are completely unnecessary
|
# Both this file & the .packlist one below are completely unnecessary
|
||||||
# to package & causes pointless conflict with other formulae. They are
|
# to package & causes pointless conflict with other formulae. They are
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user