summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-03-13 14:50:38 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-03-13 14:51:28 -0700
commit77aeac65013250b1bd3beccb4c2f6dc6d3138ac9 (patch)
tree76f9e37946f9456bbc7fe83d5822efc3ba77d797 /lib
parentc3f3353de0011d8366068530ac56dfe55ae66135 (diff)
downloadspack-77aeac65013250b1bd3beccb4c2f6dc6d3138ac9.tar.gz
spack-77aeac65013250b1bd3beccb4c2f6dc6d3138ac9.tar.bz2
spack-77aeac65013250b1bd3beccb4c2f6dc6d3138ac9.tar.xz
spack-77aeac65013250b1bd3beccb4c2f6dc6d3138ac9.zip
Support github URLs
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/url.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/url.py b/lib/spack/spack/url.py
index 0bc7ff53b4..a4c32eb37b 100644
--- a/lib/spack/spack/url.py
+++ b/lib/spack/spack/url.py
@@ -102,6 +102,9 @@ def parse_version_string_with_indices(path):
# e.g. https://github.com/petdance/ack/tarball/1.93_02
(r'github.com/.+/(?:zip|tar)ball/v?((\d+\.)+\d+_(\d+))$', path),
+ # e.g. https://github.com/hpc/lwgrp/archive/v1.0.1.tar.gz
+ (r'github.com/[^/]+/[^/]+/archive/v?(\d+(?:\.\d+)*)\.tar\.gz$', path),
+
# e.g. https://github.com/erlang/otp/tarball/OTP_R15B01 (erlang style)
(r'[-_](R\d+[AB]\d*(-\d+)?)', path),
@@ -169,6 +172,7 @@ def parse_name(path, ver=None):
ntypes = (r'/sourceforge/([^/]+)/',
r'/([^/]+)/(tarball|zipball)/',
r'/([^/]+)[_.-](bin|dist|stable|src|sources)[_.-]%s' % ver,
+ r'github.com/[^/]+/([^/]+)/archive',
r'/([^/]+)[_.-]v?%s' % ver,
r'/([^/]+)%s' % ver,
r'^([^/]+)[_.-]v?%s' % ver,