1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

make sure not to use cached channels for nix-channel --update

fixes #1964
This commit is contained in:
Yorick van Pelt 2018-05-09 15:23:08 +02:00
parent a1adcdf087
commit b9289e4855
No known key found for this signature in database
GPG key ID: D8D3CC6D951384DE
3 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@ static void update(const StringSet & channelNames)
// definition from a consistent location if the redirect changes mid-download.
std::string effectiveUrl;
auto dl = getDownloader();
auto filename = dl->downloadCached(store, url, false, "", Hash(), &effectiveUrl);
auto filename = dl->downloadCached(store, url, false, "", Hash(), &effectiveUrl, 0);
url = chomp(std::move(effectiveUrl));
// If the URL contains a version number, append it to the name