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

@ -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 };
};