Skip to content
Snippets Groups Projects
Commit 52c2d6e3 authored by Adrian Ciu's avatar Adrian Ciu
Browse files

VT-109: reverse order of creating gpg keys and adding a mirror in spack operation create cache

parent 3389ee63
No related branches found
No related tags found
1 merge request!19ESD and HPC compatibility
Pipeline #64172 passed with stages
in 37 minutes and 32 seconds
......@@ -45,6 +45,9 @@ class SpackOperationCreateCache(SpackOperation):
NoSpackEnvironmentException: If the spack environment is not set up.
"""
super().setup_spack_env()
if self.signed:
self.create_gpg_keys()
self.logger.info('Created gpg keys')
self.add_mirror('local_cache',
str(self.spack_config.buildcache_dir),
signed=self.signed,
......@@ -76,9 +79,6 @@ class SpackOperationCreateCache(SpackOperation):
Raises:
NoSpackEnvironmentException: If the spack environment is not set up.
"""
if self.signed:
self.create_gpg_keys()
self.logger.info('Created gpg keys')
super().install_packages(jobs=jobs, signed=self.signed, debug=debug, fresh=True, test=test)
if self.build_cache:
self.build_cache.upload(self.spack_config.buildcache_dir, override_cache=self.spack_config.override_cache)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment