aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMax Howell2012-01-14 03:46:25 +0000
committerMax Howell2012-01-14 03:48:03 +0000
commit9a774ac0a67c81c6e84084dce2c908eafcd521d9 (patch)
tree1e6d297c9a6bdd815e249f8797cf3960fc8ee0b9 /Library/Homebrew/extend
parent7962b15a982cef28cf2356fff1f534000fdb333a (diff)
downloadbrew-9a774ac0a67c81c6e84084dce2c908eafcd521d9.tar.bz2
Fix libinet version detection
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index a83ef31af..f7a45ebac 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -117,6 +117,10 @@ class Pathname
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+)$].match to_s
return $2 if $2
+ # eg. https://github.com/sam-github/libnet/tarball/libnet-1.1.4
+ %r[github.com/.*/(zip|tar)ball/.*-((\d\.)+\d+)$].match to_s
+ return $2 if $2
+
# dashed version
# eg. github.com/isaacs/npm/tarball/v0.2.5-1
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+-(\d+))$].match to_s