]> git.saurik.com Git - apt.git/blobdiff - ftparchive/multicompress.cc
arpa/nameser.h, unlike nameser.h, uses NS_ prefix.
[apt.git] / ftparchive / multicompress.cc
index 08a3cff5a97abc3342e35b1bbba4f9c417e05099..3ffc5266ee22f8d9547fa7465017b52d20c00b0f 100644 (file)
@@ -352,9 +352,7 @@ bool MultiCompress::Child(int const &FD)
         for (Files *I = Outputs; I != 0; I = I->Next)
         {
            I->TmpFile.Close();
         for (Files *I = Outputs; I != 0; I = I->Next)
         {
            I->TmpFile.Close();
-           if (unlink(I->TmpFile.Name().c_str()) != 0)
-              _error->Errno("unlink",_("Problem unlinking %s"),
-                            I->TmpFile.Name().c_str());
+           RemoveFile("MultiCompress::Child", I->TmpFile.Name());
         }
         return !_error->PendingError();
       }      
         }
         return !_error->PendingError();
       }