X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/38d2959ffb8c6f5f291b2910014a67b1b352ab4c..479f6fa454cd6ee9e1bc4d9ecda856d34584092e:/methods/mirror.cc diff --git a/methods/mirror.cc b/methods/mirror.cc index d3aef91bc..01eed09f0 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -106,6 +106,7 @@ bool MirrorMethod::Clean(string Dir) // Skip some files.. if (strcmp(Dir->d_name,"lock") == 0 || strcmp(Dir->d_name,"partial") == 0 || + strcmp(Dir->d_name,"lost+found") == 0 || strcmp(Dir->d_name,".") == 0 || strcmp(Dir->d_name,"..") == 0) continue; @@ -122,7 +123,7 @@ bool MirrorMethod::Clean(string Dir) } // nothing found, nuke it if (I == list.end()) - unlink(Dir->d_name); + RemoveFile("mirror", Dir->d_name); } closedir(D);