]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-download.cc
wrap every unlink call to check for != /dev/null
[apt.git] / apt-private / private-download.cc
index 4894c72bfe8f3767879f537145488bf2bd69c5ef..dcb604f2a526a7cc39d21922592ad7f9da34a944 100644 (file)
@@ -331,7 +331,7 @@ bool DoClean(CommandLine &)
         c1out << "Del " << Pkg << " " << Ver << " [" << SizeToStr(St.st_size) << "B]" << std::endl;
 
         if (_config->FindB("APT::Get::Simulate") == false)
-           unlink(File);
+           RemoveFile("Cleaner::Erase", File);
       };
 };
 bool DoAutoClean(CommandLine &)