]> git.saurik.com Git - apt.git/blobdiff - methods/rred.cc
Use some semantically more correct buffer operations
[apt.git] / methods / rred.cc
index e568c75b2954a7f26ce804f0d80d6e506c5099ab..79ab8cb5282f00e6d94bbaf176793db0c555a70e 100644 (file)
@@ -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;
         }