
* tests: make `spack url [stats|summary]` work on mock packages Mock packages have historically had mock hashes, but this means they're also invalid as far as Spack's hash detection is concerned. - [x] convert all hashes in mock package to md5 or sha256 - [x] ensure that all mock packages have a URL - [x] ignore some special cases with multiple VCS fetchers * url stats: add `--show-issues` option `spack url stats` tells us how many URLs are using what protocol, type of checksum, etc., but it previously did not tell us which packages and URLs had the issues. This adds a `--show-issues` option to show URLs with insecure (`http`) URLs or `md5` hashes (which are now deprecated by NIST).
31 lines
739 B
Python
31 lines
739 B
Python
# Copyright 2013-2021 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 time import sleep
|
|
|
|
|
|
class DevBuildTestInstallPhases(Package):
|
|
homepage = "example.com"
|
|
url = "fake.com"
|
|
|
|
version('0.0.0', sha256='0123456789abcdef0123456789abcdef')
|
|
|
|
phases = ['one', 'two', 'three', 'install']
|
|
|
|
def one(self, spec, prefix):
|
|
sleep(1)
|
|
print("One locomoco")
|
|
|
|
def two(self, spec, prefix):
|
|
sleep(2)
|
|
print("Two locomoco")
|
|
|
|
def three(self, spec, prefix):
|
|
sleep(3)
|
|
print("Three locomoco")
|
|
|
|
def install(self, spec, prefix):
|
|
print("install")
|