diff options
author | Jaejeon Lim <jaejeon_lim@tmax.co.kr> | 2022-06-22 07:32:12 +0300 |
---|---|---|
committer | Jaejeon Lim <jaejeon_lim@tmax.co.kr> | 2022-06-22 07:32:12 +0300 |
commit | 0cc62608dd39e802dd99ef2f023309812b1a0d3c (patch) | |
tree | f0d99d3af392ee61034052b5237e56a42820637b | |
parent | 48dcc4ba3729f185aeb53c44ec4afdaa03a83c19 (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-x | apt-mirror | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); } |