aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/diagnostic.rb2
-rw-r--r--docs/FAQ.md5
2 files changed, 1 insertions, 6 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index f5e07ac2f..e6fecb478 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -99,7 +99,7 @@ module Homebrew
end
def check_build_from_source
- return if !ENV.has_key?("HOMEBREW_BUILD_FROM_SOURCE")
+ return unless ENV.key?("HOMEBREW_BUILD_FROM_SOURCE")
<<-EOS.undent
You have HOMEBREW_BUILD_FROM_SOURCE set. This environment variable is
diff --git a/docs/FAQ.md b/docs/FAQ.md
index 4fe11530e..5dafaac19 100644
--- a/docs/FAQ.md
+++ b/docs/FAQ.md
@@ -89,16 +89,11 @@ following conditions:
will use a bottled version of the formula, but
`brew install <formula> --enable-bar` will trigger a source build.
* The `--build-from-source` option is invoked.
-* The environment variable `HOMEBREW_BUILD_FROM_SOURCE` is set.
* The machine is not running a supported version of macOS as all
bottled builds are generated only for supported macOS versions.
* Homebrew is installed to a prefix other than the standard
`/usr/local` (although some bottles support this).
-In order to completely disable bottled builds, simply add a value for
-the environment variable `HOMEBREW_BUILD_FROM_SOURCE` to
-your profile.
-
We aim to bottle everything.
## How do I get a formula from someone else’s branch?