keg: also prune opt.
If there's dead symlinks in there they should be removed.
This commit is contained in:
parent
a3bacf1238
commit
11483d55c9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user