From c0ef6567b867dc2c31e5a48c33049eb470ccb0e4 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sun, 19 Jul 2015 20:37:45 +0100 Subject: fetch: don't flag fs modification --- Library/Homebrew/cmd/fetch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 171218294..3a7a5147c 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -32,6 +32,7 @@ module Homebrew def fetch_bottle? f 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!" @@ -39,7 +40,6 @@ module Homebrew puts "To fetch the bottle instead, run with --force-bottle" return false end - return false if ARGV.build_from_source? || ARGV.build_bottle? return false unless f.bottle.compatible_cellar? return true end -- cgit v1.2.3