summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/rred.cc5
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;
}