[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:
Bryce Glover 2019-01-27 18:49:25 -05:00
parent 2062c5191d
commit 72a95edcfb

View File

@ -88,10 +88,12 @@ class Cleaner
Find.prune if @f.skip_clean? path
next if path.symlink? || path.directory?
next if path.directory?
if path.extname == ".la"
path.unlink
elsif path.symlink?
# Skip it.
elsif path.basename.to_s == "perllocal.pod"
# Both this file & the .packlist one below are completely unnecessary
# to package & causes pointless conflict with other formulae. They are