diff options
-rw-r--r-- | lib/spack/spack/fetch_strategy.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py index 44933f62a2..834a408443 100644 --- a/lib/spack/spack/fetch_strategy.py +++ b/lib/spack/spack/fetch_strategy.py @@ -1104,8 +1104,13 @@ class CvsFetchStrategy(VCSFetchStrategy): if not (self.branch or self.date): # We need a branch or a date to make a checkout reproducible return None - repo_path = url_util.parse(self.url).path - result = os.path.sep.join(['cvs', repo_path]) + # Special-case handling because this is not actually a URL + elements = self.url.split(':') + final = elements[-1] + elements = final.split('/') + # Everything before the first slash is a port number + elements = elements[1:] + result = os.path.sep.join(['cvs'] + elements) if self.branch: result += '%branch=' + self.branch if self.date: |