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:
authorBenjamin Drung <benjamin.drung@profitbricks.com>2017-05-29 14:24:06 +0300
committerBenjamin Drung <benjamin.drung@profitbricks.com>2017-05-29 14:24:06 +0300
commita17949ca2592678aa18e263241108e431fed6c4e (patch)
treed23f0dcb21198edcf3da9075dc8cd63c3098d00d
parente9ccc7d86c7f8122e7059914acb01a5be2f0efe1 (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-xapt-mirror2
1 files changed, 1 insertions, 1 deletions
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 );
}