diff options
author | Julian Andres Klode <jak@debian.org> | 2016-02-04 17:56:27 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-02-04 17:56:27 +0100 |
commit | 610e13842a3718128c03454c5dfcbde49d323281 (patch) | |
tree | 5e285d7226c4217382edfa35ac8cf29d94ef72f6 /methods | |
parent | 14b38231c17fb39a27e0e6406425eabee2eda65f (diff) |
rred: If there were I/O errors, fail
We basically ignored errors from writing and flushing, let's
not do that.
Diffstat (limited to 'methods')
-rw-r--r-- | methods/rred.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/methods/rred.cc b/methods/rred.cc index e568c75b2..79ab8cb52 100644 --- a/methods/rred.cc +++ b/methods/rred.cc @@ -660,6 +660,11 @@ class RredMethod : public aptMethod { out.Close(); inp.Close(); + if (_error->PendingError() == true) { + std::cerr << "FAILED to read or write files" << std::endl; + return false; + } + if (Debug == true) { std::clog << "rred: finished file patching of " << Path << "." << std::endl; } |