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:
parent
a1adcdf087
commit
b9289e4855
3 changed files with 4 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "types.hh"
|
||||
#include "hash.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <string>
|
||||
#include <future>
|
||||
|
@ -54,7 +55,7 @@ struct Downloader
|
|||
use the recorded ETag to verify if the server has a more
|
||||
recent version, and if so, download it to the Nix store. */
|
||||
Path downloadCached(ref<Store> store, const string & uri, bool unpack, string name = "",
|
||||
const Hash & expectedHash = Hash(), string * effectiveUri = nullptr);
|
||||
const Hash & expectedHash = Hash(), string * effectiveUri = nullptr, int ttl = settings.tarballTtl);
|
||||
|
||||
enum Error { NotFound, Forbidden, Misc, Transient, Interrupted };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue