diff options
| author | Tim D. Smith | 2014-12-12 15:16:24 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2014-12-12 15:17:35 -0800 |
| commit | 997a3b521212f62004f4b561af20049daeb9876f (patch) | |
| tree | 0570e76195b8a869bb2b29725a6edf0c5f40e5fb /Library | |
| parent | dc1f58dead922ceb5efae8c5cff6a1f67219f436 (diff) | |
| download | brew-997a3b521212f62004f4b561af20049daeb9876f.tar.bz2 | |
Formula#exec_cmd: coerce arg to string before start_with?
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
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 |
