From: Jaejeon Lim <jaejeon_lim@tmax.co.kr>
Date: Wed, 22 Jun 2022 13:32:12 +0900
Subject: Support for xz translations

- In the case of bullseye-security distributed by the debian security camp,
  the extension of Translation-en file of bullseye-security is xz format.
  (http://security.debian.org/debian-security/dists/bullseye-security/main/i18n/Translation-en.xz)
- Accordingly, the apt-mirror script was modified to support the xz extension.

Origin: upstream, https://github.com/apt-mirror/apt-mirror/pull/158
Closes: #932112, #932379
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
Origin: vendor, https://salsa.debian.org/debian/apt-mirror/-/commit/2e3cfed2973a04b6485752fdfc789330e03aa033
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1825755
Last-Updated: 2024-01-30
---
 apt-mirror | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apt-mirror b/apt-mirror
index effac7e..9fadc26 100755
--- a/apt-mirror
+++ b/apt-mirror
@@ -520,7 +520,7 @@ sub find_translation_files_in_release
                 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 );
                     }
