diff options
author | Benjamin Drung <benjamin.drung@profitbricks.com> | 2017-05-29 14:24:06 +0300 |
---|---|---|
committer | Benjamin Drung <benjamin.drung@profitbricks.com> | 2017-05-29 14:24:06 +0300 |
commit | a17949ca2592678aa18e263241108e431fed6c4e (patch) | |
tree | d23f0dcb21198edcf3da9075dc8cd63c3098d00d | |
parent | e9ccc7d86c7f8122e7059914acb01a5be2f0efe1 (diff) |
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
-rwxr-xr-x | apt-mirror | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); } |