From 8994b4aab69972a4fbf410cf6252c76e25412b09 Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Wed, 17 Jul 2019 09:59:21 -0600 Subject: [PATCH] Fix flake8 compliance --- lib/spack/spack/package.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index d95f0901ed8..593a1f43bd9 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1496,13 +1496,15 @@ def do_install(self, **kwargs): # Install Package to Global Upstream for multi-user use if install_global: - global_root = spack.config.get('upstreams')['global']['install_tree'] + global_root = spack.config.get('upstreams') + global_root = global_root['global']['install_tree'] global_root = spack.util.path.canonicalize_path(global_root) spack.config.set('config:active_tree', global_root) elif upstream: raise NotImplementedError else: - spack.config.set('config:active_tree', spack.config.get('config:install_tree')) + spack.config.set('config:active_tree', + spack.config.get('config:install_tree')) # For external packages the workflow is simplified, and basically # consists in module file generation and registration in the DB