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
pull/83/merge
Benjamin Drung 5 years ago
parent e9ccc7d86c
commit a17949ca25
  1. 2
      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 );
}

Loading…
Cancel
Save