aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-12-12 15:16:24 -0800
committerTim D. Smith2014-12-12 15:17:35 -0800
commit997a3b521212f62004f4b561af20049daeb9876f (patch)
tree0570e76195b8a869bb2b29725a6edf0c5f40e5fb /Library
parentdc1f58dead922ceb5efae8c5cff6a1f67219f436 (diff)
downloadbrew-997a3b521212f62004f4b561af20049daeb9876f.tar.bz2
Formula#exec_cmd: coerce arg to string before start_with?
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 36c93e7df..f3a8cbfbd 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -663,7 +663,7 @@ class Formula
# special cases to this method.
if cmd == "python"
setup_py_in_args = %w[setup.py build.py].include?(args.first)
- setuptools_shim_in_args = args.any? { |a| a.start_with? "import setuptools" }
+ setuptools_shim_in_args = args.any? { |a| a.to_s.start_with? "import setuptools" }
if setup_py_in_args || setuptools_shim_in_args
ENV.refurbish_args
end