X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/2651f1c071927b7fc440ec7a638ecad7ccf04a2e..72ed5f14b558984bd9c5731f82345b10cb2df2ca:/methods/rred.cc?ds=sidebyside 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; }