Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/apt-mirror/apt-mirror.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaejeon Lim <jaejeon_lim@tmax.co.kr>2022-06-22 07:32:12 +0300
committerJaejeon Lim <jaejeon_lim@tmax.co.kr>2022-06-22 07:32:12 +0300
commit0cc62608dd39e802dd99ef2f023309812b1a0d3c (patch)
treef0d99d3af392ee61034052b5237e56a42820637b
parent48dcc4ba3729f185aeb53c44ec4afdaa03a83c19 (diff)
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.
-rwxr-xr-xapt-mirror2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-mirror b/apt-mirror
index 84a14df..fd4f074 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 );
}