diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2024-01-03 16:25:35 +0000 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2024-01-03 16:59:11 +0000 |
| commit | afcdbcf895284efd76903b2b3ba5cc849059ce50 (patch) | |
| tree | 23aacb3d405c71fadbd3a41a25d02fb67d845811 /apt-private | |
| parent | c82f96210eb62c92d31ded7073f4cf5371cc9485 (diff) | |
Do not store .diff_Index files in update
Nowadays we only download the index file if we have a non-current file
on disk which we want to patch. If that is the case, any index file for
patches we could have stored is by definition outdated, so storing those
files just takes up disk space.
At least, that is the case if we have a Release file – if we don't this
commit introduces a needless redownload for such repositories but such
repositories are an error by default and if they can't be bothered to
provide a Release file its very unlikely they actually ship diffs, so
adding detection code for this seems pointless at best.
Diffstat (limited to 'apt-private')
| -rw-r--r-- | apt-private/private-download.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index d95c8ef43..84a088f3d 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -316,7 +316,7 @@ static bool CleanDownloadDirectories(bool const ListsToo) std::cout << "Del " << archivedir << "* " << archivedir << "partial/*" << std::endl << "Del " << listsdir << "partial/*" << std::endl; if (ListsToo) - std::cout << "Del " << listsdir << "*_{Packages,Sources,Translation-*}{,.diff_Index}" << std::endl; + std::cout << "Del " << listsdir << "*_{Packages,Sources,Translation-*}" << std::endl; std::cout << "Del " << pkgcache << " " << srcpkgcache << std::endl; return true; } |
