BinaryCacheStore: Support "none" compression method
This commit is contained in:
parent
8e065c6b3e
commit
5acb691402
5 changed files with 51 additions and 31 deletions
|
|
@ -31,7 +31,7 @@ void builtinFetchurl(const BasicDerivation & drv)
|
|||
auto unpack = drv.env.find("unpack");
|
||||
if (unpack != drv.env.end() && unpack->second == "1") {
|
||||
if (string(*data.data, 0, 6) == string("\xfd" "7zXZ\0", 6))
|
||||
data.data = decompressXZ(*data.data);
|
||||
data.data = decompress("xz", ref<std::string>(data.data));
|
||||
StringSource source(*data.data);
|
||||
restorePath(storePath, source);
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue