X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/83b880c6505a20247239d897b7387bba37942993..af859f09084b4f6163501f216ba8cc2356fb3f93:/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);