diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-29T15·02+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-29T15·02+0200 |
commit | 5acb6914020a94be8468d7670b564388c59794ee (patch) | |
tree | 0ba3c95263577cab2cd5a69810c755485ef57a4c /src/libstore/builtins.cc | |
parent | 8e065c6b3e36e4cd113769575c0045b6d42357ef (diff) |
BinaryCacheStore: Support "none" compression method
Diffstat (limited to 'src/libstore/builtins.cc')
-rw-r--r-- | src/libstore/builtins.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/builtins.cc b/src/libstore/builtins.cc index 50417b644a02..a4785d6905bb 100644 --- a/src/libstore/builtins.cc +++ b/src/libstore/builtins.cc @@ -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 |