diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2019-12-07 22:35:14 +0700 |
---|---|---|
committer | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2019-12-07 22:35:14 +0700 |
commit | 9ff5f6492f46b7f3342d47f138b590f09e939865 (patch) | |
tree | ececcaddac8cc3e95e530b53b6c39103c90dcbb0 /src/libstore/download.cc | |
parent | 3b9c9d34e5ede028860e919d72cc5ae33dd95443 (diff) |
libarchive proof of concept
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r-- | src/libstore/download.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 61e88c5c1..c7c1b93ad 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -907,7 +907,7 @@ CachedDownloadResult Downloader::downloadCached( printInfo("unpacking '%s'...", url); Path tmpDir = createTempDir(); AutoDelete autoDelete(tmpDir, true); - unpackTarfile(store->toRealPath(storePath), tmpDir, baseNameOf(url)); + unpackTarfile(store->toRealPath(storePath), tmpDir); auto members = readDirectory(tmpDir); if (members.size() != 1) throw nix::Error("tarball '%s' contains an unexpected number of top-level files", url); |