Skip to content

Commit eaff47b

Browse files
committed
more fixes from testing
1 parent 2093e57 commit eaff47b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/spack/spack/binary_distribution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def extract_tarball(package):
191191
tarball = tarball_name(package.spec)
192192
tar = which("tar")
193193
local_tarball = package.stage.path + "/" + tarball
194+
mkdirp('%s' % package.prefix)
194195
tar("--strip-components=1",
195196
"-C%s" % package.prefix,
196197
"-xf",

lib/spack/spack/cmd/install_tarball.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def install_tarball(parser, args):
6969
package)
7070
if tarball_available:
7171
spack.binary_distribution.prepare()
72-
spack.binary_distribution.extract_tarball(spec)
73-
spack.binary_distribution.relocate_package(spec)
72+
spack.binary_distribution.extract_tarball(package)
73+
spack.binary_distribution.relocate_package(package)
7474
spack.store.db.reindex(spack.store.layout)
7575
else:
7676
tty.die("Download of binary cache tarball for spec %s failed." % spec)

0 commit comments

Comments
 (0)