]> git.saurik.com Git - apt.git/blobdiff - ftparchive/writer.cc
Dutch manpages translation (NEW)
[apt.git] / ftparchive / writer.cc
index 0bd2be566fa8a59916a202d6967b5f6bbbc20f6a..c0223a74cd3371375d2faf579e24b1b93c645a50 100644 (file)
@@ -302,9 +302,7 @@ bool FTWScanner::Delink(string &FileName,const char *OriginalPath,
               _error->Errno("readlink",_("Failed to readlink %s"),OriginalPath);
            else
            {
-              if (unlink(OriginalPath) != 0)
-                 _error->Errno("unlink",_("Failed to unlink %s"),OriginalPath);
-              else
+              if (RemoveFile("FTWScanner::Delink", OriginalPath))
               {
                  if (link(FileName.c_str(),OriginalPath) != 0)
                  {