mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Merge branch 'nix-channel-c++'
This commit is contained in:
commit
572aba284a
8 changed files with 304 additions and 233 deletions
|
@ -21,6 +21,7 @@ struct DownloadResult
|
|||
{
|
||||
bool cached;
|
||||
string etag;
|
||||
string effectiveUrl;
|
||||
std::shared_ptr<std::string> data;
|
||||
};
|
||||
|
||||
|
@ -33,6 +34,11 @@ struct Downloader
|
|||
Path downloadCached(ref<Store> store, const string & url, bool unpack, string name = "",
|
||||
const Hash & expectedHash = Hash());
|
||||
|
||||
/* Need to overload because can't have an rvalue default value for non-const reference */
|
||||
|
||||
Path downloadCached(ref<Store> store, const string & url, bool unpack,
|
||||
string & effectiveUrl, const Hash & expectedHash = Hash());
|
||||
|
||||
enum Error { NotFound, Forbidden, Misc, Transient };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue