Package: apt-mirror
Version: 0.5.4-1
As I'm testing Buster upgrades, I discovered that apt-mirror (which
doesn't change between Stretch and Buster) was not grabbing the i18n
Translation file for the buster-backports distro. A little investigation
showed that it's because the script is only programmed to grab the *.bz2
translation file references in the Release file. Since buster-backports
only includes *.xz translations (not sure if that's intentional or not),
they are never grabbed. A trivial patch that adds *.xz files to the list
and works for me is below:
--- apt-mirror 2019-07-18 09:59:07.904604283 -0500
+++ apt-mirror.new 2019-07-18 09:55:11.000000000 -0500
@@ -520,7 +520,7 @@
if ( @parts == 3 )
{
my ( $sha1, $size, $filename ) = @parts;
- if ( $filename =~
m{^$component/i18n/Translation-[^./]*\.bz2$} )
+ if ( $filename =~
m{^$component/i18n/Translation-[^./]*\.(bz2|xz)$} )
{
add_url_to_download( $dist_uri . $filename,
$size );
}
--
Justin Pasher