diff options
| author | Mike McQuaid | 2014-02-07 23:00:48 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-07 23:00:48 +0000 |
| commit | 7970ba32d0962d668a8a6c1ada13d5a54b1c2f76 (patch) | |
| tree | e5f41aff1e21c200de43265512fb0bb9269d276e /Library/Formula | |
| parent | 10b1dcb46a07106c2e5f96ad2842c7656a803820 (diff) | |
| download | homebrew-7970ba32d0962d668a8a6c1ada13d5a54b1c2f76.tar.bz2 | |
sip: use array for pythons.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sip.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb index ff71fc11f..e575c42ae 100644 --- a/Library/Formula/sip.rb +++ b/Library/Formula/sip.rb @@ -15,10 +15,11 @@ class Sip < Formula end def pythons - pythons = {} + pythons = [] ["python", "python3"].each do |python| next if build.without? python - pythons[python] = /\d\.\d/.match `#{python} --version 2>&1` + version = /\d\.\d/.match `#{python} --version 2>&1` + pythons << [python, version] end pythons end |
