mirror of
https://github.com/NixOS/nix
synced 2025-07-01 16:41:47 +02:00
Merge branch 'libarchive' of https://github.com/yorickvP/nix
This commit is contained in:
commit
ee235e764c
17 changed files with 128 additions and 182 deletions
|
@ -908,7 +908,7 @@ CachedDownloadResult Downloader::downloadCached(
|
|||
printInfo("unpacking '%s'...", url);
|
||||
Path tmpDir = createTempDir();
|
||||
AutoDelete autoDelete(tmpDir, true);
|
||||
unpackTarfile(store->toRealPath(store->printStorePath(*storePath)), tmpDir, std::string(baseNameOf(url)));
|
||||
unpackTarfile(store->toRealPath(store->printStorePath(*storePath)), tmpDir);
|
||||
auto members = readDirectory(tmpDir);
|
||||
if (members.size() != 1)
|
||||
throw nix::Error("tarball '%s' contains an unexpected number of top-level files", url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue