mirror of
https://github.com/NixOS/nix
synced 2025-07-02 21:51:50 +02:00
make sure not to use cached channels for nix-channel --update
fixes #1964
This commit is contained in:
parent
a1adcdf087
commit
b9289e4855
3 changed files with 4 additions and 4 deletions
|
@ -623,7 +623,7 @@ DownloadResult Downloader::download(const DownloadRequest & request)
|
|||
return enqueueDownload(request).get();
|
||||
}
|
||||
|
||||
Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpack, string name, const Hash & expectedHash, string * effectiveUrl)
|
||||
Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpack, string name, const Hash & expectedHash, string * effectiveUrl, int ttl)
|
||||
{
|
||||
auto url = resolveUri(url_);
|
||||
|
||||
|
@ -653,7 +653,6 @@ Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpa
|
|||
|
||||
string expectedETag;
|
||||
|
||||
int ttl = settings.tarballTtl;
|
||||
bool skip = false;
|
||||
|
||||
if (pathExists(fileLink) && pathExists(dataFile)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue