Merge pull request #4954 from alebcay/prune
prune: preserve some directories
This commit is contained in:
commit
27c2a0a0b4
@ -32,7 +32,8 @@ module Homebrew
|
|||||||
path.unlink
|
path.unlink
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elsif path.directory? && !Keg::PRUNEABLE_DIRECTORIES.include?(path)
|
elsif path.directory? && !Keg::PRUNEABLE_DIRECTORIES.include?(path) &&
|
||||||
|
!Keg::MUST_BE_WRITABLE_DIRECTORIES.include?(path)
|
||||||
dirs << path
|
dirs << path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user