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
commit14d7d03425a80fd226cb7e7584e840fbf18bd499 (patch)
tree03b5a76a633115b7c6aa90b79b4b02c774a54d35 /Library/Homebrew/extend
parent9056c49f9dfc1fb343a0afd718c7957095bea400 (diff)
downloadhomebrew-14d7d03425a80fd226cb7e7584e840fbf18bd499.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