Skip to content
Snippets Groups Projects
Commit 11483d55 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

keg: also prune opt.

If there's dead symlinks in there they should be removed.
parent a3bacf12
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ class Keg
INFOFILE_RX = %r{info/([^.].*?\.info|dir)$}
TOP_LEVEL_DIRECTORIES = %w[bin etc include lib sbin share var Frameworks].freeze
ALL_TOP_LEVEL_DIRECTORIES = (TOP_LEVEL_DIRECTORIES + %w[lib/pkgconfig share/locale share/man opt]).freeze
PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share Frameworks LinkedKegs var/homebrew/linked].map do |dir|
PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share opt Frameworks LinkedKegs var/homebrew/linked].map do |dir|
case dir
when "LinkedKegs"
HOMEBREW_LIBRARY/dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment