mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Revert "Fix 'error 9 while decompressing xz file'"
This reverts commit 78fa47a7f0.
This commit is contained in:
parent
aa739e7839
commit
03f09e1d18
7 changed files with 119 additions and 156 deletions
|
|
@ -96,13 +96,11 @@ struct Downloader
|
|||
|
||||
std::future<DownloadResult> enqueueDownload(const DownloadRequest & request);
|
||||
|
||||
/* Synchronously download a file. The request will be retried in
|
||||
case of transient failures. */
|
||||
/* Synchronously download a file. */
|
||||
DownloadResult download(const DownloadRequest & request);
|
||||
|
||||
/* Download a file, writing its data to a sink. The sink will be
|
||||
invoked on the thread of the caller. The request will not be
|
||||
retried in case of transient failures. */
|
||||
invoked on the thread of the caller. */
|
||||
void download(DownloadRequest && request, Sink & sink);
|
||||
|
||||
/* Check if the specified file is already in ~/.cache/nix/tarballs
|
||||
|
|
@ -128,11 +126,6 @@ public:
|
|||
DownloadError(Downloader::Error error, const FormatOrString & fs)
|
||||
: Error(fs), error(error)
|
||||
{ }
|
||||
|
||||
bool isTransient() override
|
||||
{
|
||||
return error == Downloader::Error::Transient;
|
||||
}
|
||||
};
|
||||
|
||||
bool isUri(const string & s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue