mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
nix-channel: Don't fetch binary-cache-url
This has been ignored since the Perl->C++ rewrite.
This commit is contained in:
parent
09dde33c19
commit
88571219d9
4 changed files with 8 additions and 35 deletions
|
@ -113,15 +113,6 @@ static void update(const StringSet & channelNames)
|
|||
}
|
||||
|
||||
if (!unpacked) {
|
||||
// The URL doesn't unpack directly, so let's try treating it like a full channel folder with files in it
|
||||
// Check if the channel advertises a binary cache.
|
||||
DownloadRequest request(url + "/binary-cache-url");
|
||||
try {
|
||||
auto dlRes = dl->download(request);
|
||||
extraAttrs = "binaryCacheURL = \"" + *dlRes.data + "\";";
|
||||
} catch (DownloadError & e) {
|
||||
}
|
||||
|
||||
// Download the channel tarball.
|
||||
try {
|
||||
filename = dl->downloadCached(store, CachedDownloadRequest(url + "/nixexprs.tar.xz")).path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue