aboutsummaryrefslogtreecommitdiff
path: root/src/nix-channel
diff options
context:
space:
mode:
authorYorick van Pelt <yorick@yorickvanpelt.nl>2018-05-09 15:23:08 +0200
committerYorick van Pelt <yorick@yorickvanpelt.nl>2018-05-09 16:18:20 +0200
commitb9289e4855d0221825c6f673d64f69802daa6b42 (patch)
tree6bf4807beac8ec3e350dd3af5877cb6a0991fa1d /src/nix-channel
parenta1adcdf0878501b512d7ab98d713167f035a330d (diff)
make sure not to use cached channels for nix-channel --update
fixes #1964
Diffstat (limited to 'src/nix-channel')
-rwxr-xr-xsrc/nix-channel/nix-channel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-channel/nix-channel.cc b/src/nix-channel/nix-channel.cc
index d1b47ede8..55ebda438 100755
--- a/src/nix-channel/nix-channel.cc
+++ b/src/nix-channel/nix-channel.cc
@@ -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