aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 8c07a6f8d..7de08761d 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -33,10 +33,6 @@ BOTTLE_ERB = <<-EOS
EOS
module Homebrew extend self
- class << self
- include Utils::Inreplace
- end
-
def keg_contains string, keg
if not ARGV.homebrew_developer?
return quiet_system 'fgrep', '--recursive', '--quiet', '--max-count=1', string, keg
@@ -236,7 +232,7 @@ module Homebrew extend self
f = Formula.factory formula_name
update_or_add = nil
- inreplace f.path do |s|
+ Utils::Inreplace.inreplace(f.path) do |s|
if s.include? 'bottle do'
update_or_add = 'update'
string = s.sub!(/ bottle do.+?end\n/m, output)