From 6829c5420b4c2e434489e837cad6f3fd09fa3ab3 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 28 Apr 2017 18:18:28 +0200 Subject: clean archives without changing directory Adopting this change in other frontends will require source changes as well similar to our own changes in apt-private/. --- apt-private/private-download.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apt-private') diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index ee477f4cb..c8d1b5a09 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -339,15 +339,15 @@ bool DoClean(CommandLine &) // --------------------------------------------------------------------- /* This is similar to clean but it only purges things that cannot be downloaded, that is old versions of cached packages. */ - class LogCleaner : public pkgArchiveCleaner + class LogCleaner : public pkgArchiveCleaner2 { protected: - virtual void Erase(const char *File, std::string Pkg, std::string Ver,struct stat &St) APT_OVERRIDE + virtual void Erase(int const dirfd, char const * const File, std::string const &Pkg, std::string const &Ver,struct stat const &St) APT_OVERRIDE { c1out << "Del " << Pkg << " " << Ver << " [" << SizeToStr(St.st_size) << "B]" << std::endl; if (_config->FindB("APT::Get::Simulate") == false) - RemoveFile("Cleaner::Erase", File); + RemoveFileAt("Cleaner::Erase", dirfd, File); }; }; bool DoAutoClean(CommandLine &) -- cgit v1.2.3