diff options
-rw-r--r-- | lib/spack/spack/binary_distribution.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py index 49f8416d6f..9991a66965 100644 --- a/lib/spack/spack/binary_distribution.py +++ b/lib/spack/spack/binary_distribution.py @@ -596,6 +596,10 @@ def extract_tarball(spec, filename, allow_root=False, unsigned=False, with closing(tarfile.open(spackfile_path, 'r')) as tar: tar.extractall(tmpdir) + # older buildcache tarfiles use gzip compression + if not os.path.exists(tarfile_path): + tarfile_name = tarball_name(spec, '.tar.gz') + tarfile_path = os.path.join(tmpdir, tarfile_name) if not unsigned: if os.path.exists('%s.asc' % specfile_path): try: |