Skip to content
Snippets Groups Projects
Commit 2e3cfed2 authored by Benjamin Drung's avatar Benjamin Drung
Browse files

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: default avatarBenjamin Drung <benjamin.drung@canonical.com>
parent 6e6eb296
No related branches found
No related tags found
No related merge requests found
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
---
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 );
}
Support-for-xz-translations.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment