diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-04-19 23:17:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 14:17:47 -0700 |
commit | d51af675ef345a191aa995b82609e5f6776184a3 (patch) | |
tree | b41f286020d2fe56abc67502a1c188a97492e515 /var/spack/repos/builtin.mock/packages/hash-test3 | |
parent | c7508dc21625b80b0fc6a4b835f0a6fdd38480d3 (diff) | |
download | spack-d51af675ef345a191aa995b82609e5f6776184a3.tar.gz spack-d51af675ef345a191aa995b82609e5f6776184a3.tar.bz2 spack-d51af675ef345a191aa995b82609e5f6776184a3.tar.xz spack-d51af675ef345a191aa995b82609e5f6776184a3.zip |
make version(...) kwargs explicit (#36998)
- [x] Replace `version(ver, checksum=None, **kwargs)` signature with
`version(ver, checksum=None, *, sha256=..., ...)` explicitly listing all arguments.
- [x] Fix various issues in packages:
- `tags` instead of `tag`
- `default` instead of `preferred`
- `sha26` instead of `sha256`
- etc
Also, use `sha256=...` consistently.
Note: setting `sha256` currently doesn't validate the checksum length, so you could do
`sha256="a"*32` and it would get checked as `md5`... but that's something for another PR.
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/hash-test3')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/hash-test3/package.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/var/spack/repos/builtin.mock/packages/hash-test3/package.py b/var/spack/repos/builtin.mock/packages/hash-test3/package.py index 4010307237..0f56f5a5cb 100644 --- a/var/spack/repos/builtin.mock/packages/hash-test3/package.py +++ b/var/spack/repos/builtin.mock/packages/hash-test3/package.py @@ -14,11 +14,11 @@ class HashTest3(Package): homepage = "http://www.hashtest3.org" url = "http://www.hashtest1.org/downloads/hashtest3-1.1.tar.bz2" - version("1.2", "b" * 32) - version("1.3", "c" * 32) - version("1.5", "d" * 32) - version("1.6", "e" * 32) - version("1.7", "f" * 32) + version("1.2", md5="b" * 32) + version("1.3", md5="c" * 32) + version("1.5", md5="d" * 32) + version("1.6", md5="e" * 32) + version("1.7", md5="f" * 32) variant("variantx", default=False, description="Test variant X") variant("varianty", default=False, description="Test variant Y") |