summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2015-11-18 15:48:13 (GMT)
committerColin Watson <cjwatson@debian.org>2016-02-07 13:25:22 (GMT)
commit417f28d5396839a5dbe6ea9c3dd00a14dcf12ef7 (patch)
treec4f3eadf564ec59f38a428b07a3372ac2294273c
parentb2bb87e7544ee21d8120ef7e20d34749a70cd00d (diff)
Import 1:2.18+nmu12.18+nmu1
* Non-maintainer upload. * Add support for xz-compressed index files. Closes: #737057
-rw-r--r--debian/changelog7
-rwxr-xr-xdebmirror36
2 files changed, 25 insertions, 18 deletions
diff --git a/debian/changelog b/debian/changelog
index 1aed8c5..d1265bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debmirror (1:2.18+nmu1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add support for xz-compressed index files. Closes: #737057
+
+ -- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Wed, 18 Nov 2015 16:48:13 +0100
+
debmirror (1:2.18) unstable; urgency=low
* New maintainer, on a trial basis. We'll see how it goes. Thanks,
diff --git a/debmirror b/debmirror
index 8bd1cd0..93224bc 100755
--- a/debmirror
+++ b/debmirror
@@ -389,7 +389,7 @@ successfully applied).
=item B<--slow-cpu>
By default debmirror saves some bandwidth by performing cpu-intensive
-tasks, such as compressing files to generate .gz and .bz2 files. Use this
+tasks, such as compressing files to generate .gz and .xz files. Use this
mode if the computer's CPU is slow, and it makes more sense to use more
bandwidth and less CPU.
@@ -1062,7 +1062,7 @@ foreach my $dist (keys %distset) {
foreach my $arch (@arches) {
add_bytes("dists/$dist/$section/binary-$arch/Packages");
add_bytes("dists/$dist/$section/binary-$arch/Packages.gz");
- add_bytes("dists/$dist/$section/binary-$arch/Packages.bz2");
+ add_bytes("dists/$dist/$section/binary-$arch/Packages.xz");
add_bytes("dists/$dist/$section/binary-$arch/Release");
add_bytes("dists/$dist/$section/binary-$arch/Packages.diff/Index") unless ($diff_mode eq "none");
}
@@ -1070,7 +1070,7 @@ foreach my $dist (keys %distset) {
if ($do_source && $section !~ /debian-installer/) {
add_bytes("dists/$dist/$section/source/Sources");
add_bytes("dists/$dist/$section/source/Sources.gz");
- add_bytes("dists/$dist/$section/source/Sources.bz2");
+ add_bytes("dists/$dist/$section/source/Sources.xz");
add_bytes("dists/$dist/$section/source/Release");
add_bytes("dists/$dist/$section/source/Sources.diff/Index") unless ($diff_mode eq "none");
}
@@ -2218,7 +2218,7 @@ sub get_index {
if (check_lists("$tempdir/$subdir/$file")) {
if (! $slow_cpu) {
system_redirect_io("gzip $gzip_options", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.gz");
- system_redirect_io("bzip2", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.bz2");
+ system_redirect_io("xz", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.xz");
}
}
}
@@ -2228,7 +2228,7 @@ sub get_index {
if (check_lists("$tempdir/$subdir/$file")) {
if (! $slow_cpu) {
system_redirect_io("gzip $gzip_options", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.gz");
- system_redirect_io("bzip2", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.bz2");
+ system_redirect_io("xz", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.xz");
}
}
}
@@ -2241,7 +2241,7 @@ sub get_index {
if (remote_get("$subdir/$file.gz")) {
system_redirect_io("gzip -d", "$tempdir/$subdir/$file.gz", "$tempdir/$subdir/$file");
if (! $slow_cpu) {
- system_redirect_io("bzip2", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.bz2");
+ system_redirect_io("xz", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.xz");
}
} else {
push (@errlog,"$subdir/$file.gz failed checksum verification\n");
@@ -2268,7 +2268,7 @@ sub get_index {
if (!check_lists("$tempdir/$subdir/$file")) {
if (remote_get("$subdir/$file")) {
if (! $slow_cpu) {
- system_redirect_io("bzip2", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.bz2");
+ system_redirect_io("xz", "$tempdir/$subdir/$file", "$tempdir/$subdir/$file.xz");
}
} else {
push (@errlog,"$subdir/$file failed checksum verification\n");
@@ -2278,13 +2278,13 @@ sub get_index {
$bytes_gotten += $file_lists{"$tempdir/$subdir/$file"}{size};
}
}
- if (exists $file_lists{"$tempdir/$subdir/$file.bz2"}) {
- if (!check_lists("$tempdir/$subdir/$file.bz2")) {
- if (!remote_get("$subdir/$file.bz2")) {
- push (@errlog,"$subdir/$file.bz2 failed checksum verification, removing\n");
+ if (exists $file_lists{"$tempdir/$subdir/$file.xz"}) {
+ if (!check_lists("$tempdir/$subdir/$file.xz")) {
+ if (!remote_get("$subdir/$file.xz")) {
+ push (@errlog,"$subdir/$file.xz failed checksum verification, removing\n");
}
} else {
- $bytes_gotten += $file_lists{"$tempdir/$subdir/$file.bz2"}{size};
+ $bytes_gotten += $file_lists{"$tempdir/$subdir/$file.xz"}{size};
}
}
if (exists $file_lists{"$tempdir/$subdir/Release"}) {
@@ -2304,12 +2304,12 @@ sub get_index {
die "get_index called with unknown type $file\n";
}
$files{"$subdir/$file.gz"}=1;
- $files{"$subdir/$file.bz2"}=1;
+ $files{"$subdir/$file.xz"}=1;
# Uncompressed files are no longer kept on the mirrors
$files{"$subdir/$file"}=1 unless exists $file_lists{"$tempdir/$subdir/$file.gz"};
$files{"$subdir/Release"}=1;
$files{"$tempdir/$subdir/$file.gz"}=1;
- $files{"$tempdir/$subdir/$file.bz2"}=1;
+ $files{"$tempdir/$subdir/$file.xz"}=1;
$files{"$tempdir/$subdir/$file"}=1;
$files{"$tempdir/$subdir/Release"}=1;
}
@@ -2400,10 +2400,10 @@ sub link_index {
link("$tempdir/dists/$dist/$section/$archdir/$file.gz",
"$mirrordir/dists/$dist/$next/$section/$archdir/$file.gz")
or die "Error while linking $tempdir/dists/$dist/$section/$archdir/$file.gz: $!\n";
- unlink("$mirrordir/dists/$dist/$next/$section/$archdir/$file.bz2");
- link("$tempdir/dists/$dist/$section/$archdir/$file.bz2",
- "$mirrordir/dists/$dist/$next/$section/$archdir/$file.bz2")
- or die "Error while linking $tempdir/dists/$dist/$section/$archdir/$file.bz2: $!\n";
+ unlink("$mirrordir/dists/$dist/$next/$section/$archdir/$file.xz");
+ link("$tempdir/dists/$dist/$section/$archdir/$file.xz",
+ "$mirrordir/dists/$dist/$next/$section/$archdir/$file.xz")
+ or die "Error while linking $tempdir/dists/$dist/$section/$archdir/$file.xz: $!\n";
}
sub i18n_from_release {