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 | 99dd2f5a1037430ca3e806f2389859328fb69f1c (patch) | |
| tree | c6192ee21c0dd29031c543f10b2ae83c00eff2f3 /Library/Homebrew/formula.rb | |
| parent | 20a8cac1f414b8030d27da919d1a10c356d37ade (diff) | |
| download | homebrew-99dd2f5a1037430ca3e806f2389859328fb69f1c.tar.bz2 | |
Formula#exec_cmd: coerce arg to string before start_with?
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -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 |
