aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim D. Smith2016-07-27 16:19:40 -0700
committerTim D. Smith2016-07-27 17:49:49 -0700
commitc4deed68bdce6ddb05b0ed57277aa5fff34b35b7 (patch)
treec986ad50b50d60c775c229fcee8727ddb6370a53
parent9c0a2ac933ba5de08ee751ed4eace49d607d9abb (diff)
downloadbrew-c4deed68bdce6ddb05b0ed57277aa5fff34b35b7.tar.bz2
Make method names inquisitive
Closes #592. Signed-off-by: Tim D. Smith <git@tim-smith.us>
-rw-r--r--Library/Homebrew/cmd/bottle.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index f2cf36235..cb83ad570 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -35,7 +35,7 @@ EOS
MAXIMUM_STRING_MATCHES = 100
module Homebrew
- def keg_contains(string, keg, ignores)
+ def keg_contain?(string, keg, ignores)
@put_string_exists_header, @put_filenames = nil
def print_filename(string, filename)
@@ -95,10 +95,10 @@ module Homebrew
end
end
- keg_contains_absolute_symlink_starting_with?(string, keg) || result
+ keg_contain_absolute_symlink_starting_with?(string, keg) || result
end
- def keg_contains_absolute_symlink_starting_with?(string, keg)
+ def keg_contain_absolute_symlink_starting_with?(string, keg)
absolute_symlinks_start_with_string = []
keg.find do |pn|
if pn.symlink? && (link = pn.readlink).absolute?
@@ -237,10 +237,10 @@ module Homebrew
if ARGV.include? "--skip-relocation"
skip_relocation = true
else
- relocatable = false if keg_contains(prefix_check, keg, ignores)
- relocatable = false if keg_contains(cellar, keg, ignores)
+ relocatable = false if keg_contain?(prefix_check, keg, ignores)
+ relocatable = false if keg_contain?(cellar, keg, ignores)
if prefix != prefix_check
- relocatable = false if keg_contains_absolute_symlink_starting_with?(prefix, keg)
+ relocatable = false if keg_contain_absolute_symlink_starting_with?(prefix, keg)
end
skip_relocation = relocatable && !keg.require_install_name_tool?
end