From 72a95edcfb2ba6622adea1baf3471163226d15d1 Mon Sep 17 00:00:00 2001 From: Bryce Glover Date: Sun, 27 Jan 2019 18:49:25 -0500 Subject: [PATCH] [cleaner.rb] clean_dirs: Remove symbolic links if they point to static libra- ries. Reopens Homebrew/homebrew-core#35269. Closes Homebrew/homebrew-core#35269. --- Library/Homebrew/cleaner.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index 9eed49ac61..6fc4ef0774 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -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