Skip to content
Snippets Groups Projects
Commit baeb0986 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: get for unknown key in dict

parent 90778e64
No related branches found
No related tags found
1 merge request!585feat: eic-spack dd4hep-pr1080
This commit is part of merge request !585. Comments created here will be created in the context of that merge request.
...@@ -98,14 +98,14 @@ if __name__ == '__main__': ...@@ -98,14 +98,14 @@ if __name__ == '__main__':
print(' '.join(cmd)) print(' '.join(cmd))
subprocess.check_call(' '.join(cmd), shell=True) subprocess.check_call(' '.join(cmd), shell=True)
## patches ## patches
if cfg['patches']: if cfg.get('patches'):
for patch in cfg['patches']: for patch in cfg['patches']:
cmd = ['curl -L {patch} | patch -p1 -d/tmp/det'] cmd = ['curl -L {patch} | patch -p1 -d/tmp/det']
print(' '.join(cmd)) print(' '.join(cmd))
subprocess.check_call(' '.join(cmd), shell=True) subprocess.check_call(' '.join(cmd), shell=True)
## build ## build
cxxflags = '' cxxflags = ''
if cfg['cxxflags']: if cfg.get('cxxflags'):
cxxflags = cfg['cxxflags'] cxxflags = cfg['cxxflags']
cmd = [ cmd = [
'cmake -B /tmp/build -S /tmp/det -DCMAKE_CXX_STANDARD=17', 'cmake -B /tmp/build -S /tmp/det -DCMAKE_CXX_STANDARD=17',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment