Skip to content
Browse files

parse `mpich2-1.4.1p1.tar.gz` correctly

see my comment in pull request #10232
  • Loading branch information...
1 parent b73b40f commit 7a3617079847ef770818bec4fd8636272912b154 @goodell committed May 11, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −1 Library/Homebrew/extend/pathname.rb
  2. +1 −0 Library/Homebrew/test/test_versions.rb
View
3 Library/Homebrew/extend/pathname.rb
@@ -194,7 +194,8 @@ def version
# eg. foobar-4.5.1-1
# eg. ruby-1.9.1-p243
- /-((\d+\.)*\d\.\d+-(p|rc|RC)?\d+)$/.match stem
+ # eg. mpich2-1.4.1p1
+ /-((\d+\.)*\d\.\d+-?(p|rc|RC)?\d+)$/.match stem
return $1 if $1
# eg. lame-398-1
View
1 Library/Homebrew/test/test_versions.rb
@@ -230,5 +230,6 @@ def test_more_versions
'3.3.12ga7'
check 'http://www.gedanken.demon.co.uk/download-wwwoffle/wwwoffle-2.9h.tgz', '2.9h'
check 'http://synergy.googlecode.com/files/synergy-1.3.6p2-MacOSX-Universal.zip', '1.3.6p2'
+ check 'http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/mpich2-1.4.1p1.tar.gz', '1.4.1p1'
end
end

0 comments on commit 7a36170

Please sign in to comment.
Something went wrong with that request. Please try again.