Debian Bug report logs - #932379

apt-mirror doesn't grab *.xz i18n Translation files

Reported by: Justin Pasher <justinp@distribion.com> Date: Thu, 18 Jul 2019 15:09:07 UTC Severity: normal Tags: patch Found in version apt-mirror/0.5.4-1

Reply or subscribe to this bug.

Toggle useless messages

Report forwarded to debian-bugs-dist@lists.debian.org, Brandon Holtsclaw <me@brandonholtsclaw.com> :

Bug#932379 ; Package apt-mirror . (Thu, 18 Jul 2019 15:09:09 GMT) (full text, mbox, link).

Acknowledgement sent to Justin Pasher <justinp@distribion.com> :

New Bug report received and forwarded. Copy sent to Brandon Holtsclaw <me@brandonholtsclaw.com> . (Thu, 18 Jul 2019 15:09:09 GMT) (full text, mbox, link).

Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Justin Pasher <justinp@distribion.com> To: submit@bugs.debian.org Subject: apt-mirror doesn't grab *.xz i18n Translation files Date: Thu, 18 Jul 2019 10:07:15 -0500

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

Information forwarded to debian-bugs-dist@lists.debian.org, Brandon Holtsclaw <me@brandonholtsclaw.com> :

Bug#932379 ; Package apt-mirror . (Wed, 24 Jul 2019 17:48:02 GMT) (full text, mbox, link).

Acknowledgement sent to David Magda <David.Magda@oicr.on.ca> :

Extra info received and forwarded to list. Copy sent to Brandon Holtsclaw <me@brandonholtsclaw.com> . (Wed, 24 Jul 2019 17:48:02 GMT) (full text, mbox, link).

Message #10 received at 932379@bugs.debian.org (full text, mbox, reply):

From: David Magda <David.Magda@oicr.on.ca> To: <932379@bugs.debian.org> Subject: apt-mirror doesn't grab *.xz i18n Translation files Date: Wed, 24 Jul 2019 13:29:58 -0400

Please consider including the fix for this to "apt-mirror" packages in previous releases. Some of us use Deb 8/9 (jessie/strech) to run our internal mirrors, and those mirrors will server Deb10 (buster) systems.

Information forwarded to debian-bugs-dist@lists.debian.org, Brandon Holtsclaw <me@brandonholtsclaw.com> :

Bug#932379 ; Package apt-mirror . (Sun, 08 Sep 2019 20:48:02 GMT) (full text, mbox, link).

Acknowledgement sent to Сергей Фёдоров <serfyod0vr@yandex.ru> :

Extra info received and forwarded to list. Copy sent to Brandon Holtsclaw <me@brandonholtsclaw.com> . (Sun, 08 Sep 2019 20:48:02 GMT) (full text, mbox, link).

Message #15 received at 932379@bugs.debian.org (full text, mbox, reply):

From: Сергей Фёдоров <serfyod0vr@yandex.ru> To: 932379@bugs.debian.org Subject: apt-mirror doesn't grab *.xz i18n Translation files Date: Sun, 08 Sep 2019 23:37:08 +0300

I agree with Justin Pasher, but if you look a little lower in the text of the program "apt-mirror", you can see a similar code, but for all 3 archive formats: sub find_dep11_files_in_release ... if ( $filename =~ m{^$component/dep11/(Components-${arch}\.ml|icons-[^./]+\.tar)\.(gz|bz2|xz)$} ) So maybe better to add a line: if ( $filename =~ m{^$component/i18n/Translation-[^./]*\.(gz|bz2|xz)$} ) In order not to think about it anymore, especially since all the rest of the text supports all 3 formats.

Information forwarded to debian-bugs-dist@lists.debian.org, Brandon Holtsclaw <me@brandonholtsclaw.com> :

Bug#932379 ; Package apt-mirror . (Sat, 28 Sep 2019 17:39:03 GMT) (full text, mbox, link).

Acknowledgement sent to Bastian Germann <bastiangermann@fishpost.de> :

Extra info received and forwarded to list. Copy sent to Brandon Holtsclaw <me@brandonholtsclaw.com> . (Sat, 28 Sep 2019 17:39:03 GMT) (full text, mbox, link).

Message #20 received at 932379@bugs.debian.org (full text, mbox, reply):

From: Bastian Germann <bastiangermann@fishpost.de> To: 932379@bugs.debian.org Subject: Duplicate Date: Sat, 28 Sep 2019 19:34:02 +0200

This is a duplicate of #932112.

Added tag(s) patch. Request was from Bastian Germann <bastiangermann@fishpost.de> to control@bugs.debian.org . (Sat, 18 Jul 2020 05:06:03 GMT) (full text, mbox, link).

Send a report that this bug log contains spam.