From 610e13842a3718128c03454c5dfcbde49d323281 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 4 Feb 2016 17:56:27 +0100 Subject: rred: If there were I/O errors, fail We basically ignored errors from writing and flushing, let's not do that. --- methods/rred.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- cgit v1.2.3