aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/fetch.rb
diff options
context:
space:
mode:
authorDominyk Tiller2015-07-19 20:37:45 +0100
committerDominyk Tiller2015-07-23 22:28:07 +0100
commitc0ef6567b867dc2c31e5a48c33049eb470ccb0e4 (patch)
treeb8f67354daabec458733ef7b370a2cccbb15872e /Library/Homebrew/cmd/fetch.rb
parentb06af00d76857174220d9c330c47361f0c1da762 (diff)
downloadbrew-c0ef6567b867dc2c31e5a48c33049eb470ccb0e4.tar.bz2
fetch: don't flag fs modification
Diffstat (limited to 'Library/Homebrew/cmd/fetch.rb')
-rw-r--r--Library/Homebrew/cmd/fetch.rb2
1 files changed, 1 insertions, 1 deletions
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