diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2020-03-07 04:38:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-07 13:38:08 +0100 |
commit | 697719c1811c2f47b8e032f6106f9e2faee34abd (patch) | |
tree | e7e0d3c2104e7425e732c42005d1d1c3a10fb11e /var | |
parent | 9fd3b2be89c5b3b9ade1a8e101ad989175fe09cf (diff) | |
download | spack-697719c1811c2f47b8e032f6106f9e2faee34abd.tar.gz spack-697719c1811c2f47b8e032f6106f9e2faee34abd.tar.bz2 spack-697719c1811c2f47b8e032f6106f9e2faee34abd.tar.xz spack-697719c1811c2f47b8e032f6106f9e2faee34abd.zip |
Only use stable versions for public mirror (#15100)
* add --skip-unstable-versions option to 'spack mirror create' which skips sources/resource for packages if their version is not stable (i.e. if they are the head of a git branch rather than a fixed commit)
* '--skip-unstable-versions' should skip all VCS sources/resources, not just those which are not cachable
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/trivial-pkg-with-valid-hash/package.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/trivial-pkg-with-valid-hash/package.py b/var/spack/repos/builtin.mock/packages/trivial-pkg-with-valid-hash/package.py new file mode 100644 index 0000000000..52fd3d99a6 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/trivial-pkg-with-valid-hash/package.py @@ -0,0 +1,17 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class TrivialPkgWithValidHash(Package): + url = "http://www.unit-test-should-replace-this-url/trivial_install-1.0" + + version('1.0', '6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72', expand=False) + + hashed_content = "test content" + + def install(self, spec, prefix): + pass |