summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/installer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py
index dc0180feed..8ae2fd410d 100644
--- a/lib/spack/spack/installer.py
+++ b/lib/spack/spack/installer.py
@@ -367,8 +367,13 @@ def _process_binary_cache_tarball(pkg, binary_spec, explicit, unsigned,
pkg_id = package_id(pkg)
tty.msg('Extracting {0} from binary cache'.format(pkg_id))
- binary_distribution.extract_tarball(binary_spec, tarball, allow_root=False,
- unsigned=unsigned, force=False)
+
+ # don't print long padded paths while extracting/relocating binaries
+ with spack.util.path.filter_padding():
+ binary_distribution.extract_tarball(
+ binary_spec, tarball, allow_root=False, unsigned=unsigned, force=False
+ )
+
pkg.installed_from_binary_cache = True
spack.store.db.add(pkg.spec, spack.store.layout, explicit=explicit)
return True