diff options
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index eb2b76678ac7..efddc55281fe 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -1,6 +1,7 @@ #pragma once #include "types.hh" +#include "hash.hh" #include <string> @@ -27,7 +28,8 @@ struct Downloader { virtual DownloadResult download(string url, const DownloadOptions & options) = 0; - Path downloadCached(ref<Store> store, const string & url, bool unpack); + Path downloadCached(ref<Store> store, const string & url, bool unpack, + const Hash & expectedHash = Hash()); enum Error { NotFound, Forbidden, Misc }; }; |