1
0
Fork 0
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:
Shea Levy 2016-08-31 09:49:24 -04:00
commit 572aba284a
8 changed files with 304 additions and 233 deletions

View file

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