Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dedal
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
dedal
Commits
52c2d6e3
Commit
52c2d6e3
authored
1 month ago
by
Adrian Ciu
Browse files
Options
Downloads
Patches
Plain Diff
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
!19
ESD and HPC compatibility
Pipeline
#64172
passed with stages
Stage:
Stage:
Stage:
in 37 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dedal/spack_factory/SpackOperationCreateCache.py
+3
-3
3 additions, 3 deletions
dedal/spack_factory/SpackOperationCreateCache.py
with
3 additions
and
3 deletions
dedal/spack_factory/SpackOperationCreateCache.py
+
3
−
3
View file @
52c2d6e3
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment