aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-18 21:52:42 +0100
committerMike McQuaid2016-09-18 21:52:42 +0100
commitac31a6518e4179309c1411bb32ab694239af7927 (patch)
tree0b5f1c639c8cc87806695a92afc8fbff5766060f /Library
parent8e9a9b6428e5d6fea6d9808ab2c6101f598e0eb7 (diff)
downloadbrew-ac31a6518e4179309c1411bb32ab694239af7927.tar.bz2
keg: only prune var/homebrew/linked.
`var/homebrew` is too broad and ends up deleting and recreating the locks directory repeatedly.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 640ecbc72..ecbc4c6e0 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -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].map do |d|
+ PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share Frameworks LinkedKegs var/homebrew/linked].map do |d|
case d when "LinkedKegs" then HOMEBREW_LIBRARY/d else HOMEBREW_PREFIX/d end
end