From 818c65542d2bb57ba01959f1bedfddf0b4cf3be5 Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Sat, 5 Sep 2015 11:49:02 -0700 Subject: remove Formula#file_modified? It's been more trouble than it's worth. Fixes Homebrew/homebrew#43607. Closes Homebrew/homebrew#43049. Closes Homebrew/homebrew#43615. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/fetch.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 61c8bf781..ea642e6e9 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -33,13 +33,6 @@ module Homebrew return true if ARGV.force_bottle? && f.bottle return false unless f.bottle && f.pour_bottle? return false if ARGV.build_from_source? || ARGV.build_bottle? - if f.file_modified? - filename = f.path.to_s.gsub("#{HOMEBREW_PREFIX}/", "") - opoo "Formula file is modified!" - puts "Fetching source because #{filename} has local changes" - puts "To fetch the bottle instead, run with --force-bottle" - return false - end return false unless f.bottle.compatible_cellar? true end -- cgit v1.2.3