aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-02-07 23:00:48 +0000
committerMike McQuaid2014-02-07 23:00:48 +0000
commit7970ba32d0962d668a8a6c1ada13d5a54b1c2f76 (patch)
treee5f41aff1e21c200de43265512fb0bb9269d276e /Library/Formula
parent10b1dcb46a07106c2e5f96ad2842c7656a803820 (diff)
downloadhomebrew-7970ba32d0962d668a8a6c1ada13d5a54b1c2f76.tar.bz2
sip: use array for pythons.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sip.rb5
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