From a17949ca2592678aa18e263241108e431fed6c4e Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 29 May 2017 13:24:06 +0200 Subject: Also download xz-compressed Components-$arch.yml.xz The DEP11 Components-$arch.yml could be compressed by xz instead of gz. Thus download Components-$arch.yml files that are compressed with gz, bz2, or xz. fixes #69 --- apt-mirror | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-mirror b/apt-mirror index f023d36..effac7e 100755 --- a/apt-mirror +++ b/apt-mirror @@ -666,7 +666,7 @@ sub find_dep11_files_in_release if ( @parts == 3 ) { my ( $sha1, $size, $filename ) = @parts; - if ( $filename =~ m{^$component/dep11/(Components-${arch}\.yml|icons-[^./]+\.tar)\.gz$} ) + if ( $filename =~ m{^$component/dep11/(Components-${arch}\.yml|icons-[^./]+\.tar)\.(gz|bz2|xz)$} ) { add_url_to_download( $dist_uri . $filename, $size ); } -- cgit v1.2.3