diff options
author | Greg Becker <becker33@llnl.gov> | 2020-03-11 03:24:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 11:24:38 +0100 |
commit | 299fa6b5ca8072743b30379266459bbc0a53f10c (patch) | |
tree | e0a50b8be5eb50d2d88fb4be5643bb28d196fe09 /lib | |
parent | 9b114c486f4f2bddfb3471382bc65de53f3bf3a9 (diff) | |
download | spack-299fa6b5ca8072743b30379266459bbc0a53f10c.tar.gz spack-299fa6b5ca8072743b30379266459bbc0a53f10c.tar.bz2 spack-299fa6b5ca8072743b30379266459bbc0a53f10c.tar.xz spack-299fa6b5ca8072743b30379266459bbc0a53f10c.zip |
fetch_strategy: remove vestigial code (#15431)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/fetch_strategy.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py index d923e2b58e..f4d46b5f8c 100644 --- a/lib/spack/spack/fetch_strategy.py +++ b/lib/spack/spack/fetch_strategy.py @@ -29,7 +29,6 @@ import os.path import re import shutil import sys -import xml.etree.ElementTree import llnl.util.tty as tty import six @@ -773,13 +772,6 @@ class GitFetchStrategy(VCSFetchStrategy): result = os.path.sep.join(['git', repo_path, repo_ref]) return result - def get_source_id(self): - if not self.branch: - return - output = self.git('ls-remote', self.url, self.branch, output=str) - if output: - return output.split()[0] - def _repo_info(self): args = '' @@ -957,11 +949,6 @@ class SvnFetchStrategy(VCSFetchStrategy): def source_id(self): return self.revision - def get_source_id(self): - output = self.svn('info', '--xml', self.url, output=str) - info = xml.etree.ElementTree.fromstring(output) - return info.find('entry/commit').get('revision') - def mirror_id(self): if self.revision: repo_path = url_util.parse(self.url).path @@ -1077,11 +1064,6 @@ class HgFetchStrategy(VCSFetchStrategy): result = os.path.sep.join(['hg', repo_path, self.revision]) return result - def get_source_id(self): - output = self.hg('id', self.url, output=str) - if output: - return output.strip() - @_needs_stage def fetch(self): if self.stage.expanded: |