summaryrefslogtreecommitdiff
path: root/COPYRIGHT
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-01-31 11:31:57 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-05-21 17:59:50 +0200
commit0678d5df90f8cb9207536d77f00cb8a0eee6a373 (patch)
tree1ef1572bd67b15f892aec245e55f8a2ba75207a4 /COPYRIGHT
parent2a4d2f905cdc4e65839fdcf0075e822d64d0f0a5 (diff)
downloadspack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.tar.gz
spack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.tar.bz2
spack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.tar.xz
spack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.zip
repo: generalize "swap" context manager to also accept paths
The method is now called "use_repositories" and makes it clear in the docstring that it accepts as arguments either Repo objects or paths. Since there was some duplication between this contextmanager and "use_repo" in the testing framework, remove the latter and use spack.repo.use_repositories across the entire code base. Make a few adjustment to MockPackageMultiRepo, since it was stating in the docstring that it was supposed to mock spack.repo.Repo and was instead mocking spack.repo.RepoPath. (cherry picked from commit 1a8963b0f4c11c4b7ddd347e6cd95cdc68ddcbe0)
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions