Merge pull request #5633 from RandomDSdevel/clean-up-symlnks-to-static-libraries

cleaner: only skip non-.la symlinks
This commit is contained in:
Mike McQuaid 2019-01-31 14:14:03 +00:00 committed by GitHub
commit 058274a704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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