core: use sha256 instead of md5 for spack checksum and spack create

- This changes `get_checksums_for_versions` to generate code that uses an
  explicit `sha256` argument instead if the bare `md5` hash we used to
  generate.

- also use a generic digest parameter for the `version` directive, rather
  than a specific `md5` parameter.
This commit is contained in:
Todd Gamblin
2018-07-22 17:54:15 -07:00
parent 305c95b69f
commit bd3ffc7b76
6 changed files with 102 additions and 43 deletions

View File

@@ -37,13 +37,13 @@ class UrlListTest(Package):
list_url = 'file://' + web_data_path + '/index.html'
list_depth = 3
version('0.0.0')
version('1.0.0')
version('3.0')
version('4.5')
version('2.0.0b2')
version('3.0a1')
version('4.5-rc5')
version('0.0.0', 'abc000')
version('1.0.0', 'abc100')
version('3.0', 'abc30')
version('4.5', 'abc45')
version('2.0.0b2', 'abc200b2')
version('3.0a1', 'abc30a1')
version('4.5-rc5', 'abc45rc5')
def install(self, spec, prefix):
pass