mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Clear mechanize versions before install
This commit is contained in:
parent
56c3ac8b70
commit
b94b584417
@ -61,6 +61,9 @@ module Homebrew
|
||||
%w[
|
||||
mechanize
|
||||
].each do |gem|
|
||||
(HOMEBREW_LIBRARY_PATH/"vendor/gems").cd do
|
||||
Pathname.glob("#{gem}-*/").each { |path| FileUtils.rm_r(path) }
|
||||
end
|
||||
ohai "gem install #{gem}"
|
||||
safe_system "gem", "install", gem, "--install-dir", "vendor",
|
||||
"--no-document", "--no-wrappers", "--ignore-dependencies", "--force"
|
||||
|
Loading…
x
Reference in New Issue
Block a user