[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#863628: marked as done (unblock: apt-mirror/0.5.4-1)



Your message dated Sat, 03 Jun 2017 20:33:35 +0000
with message-id <E1dHFjr-00071M-2y@respighi.debian.org>
and subject line unblock apt-mirror
has caused the Debian Bug report #863628,
regarding unblock: apt-mirror/0.5.4-1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
863628: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863628
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package apt-mirror

apt-mirror 0.5.4 is a very small bug-fix release for stretch. It fixes
the warning about the use of uninitialized value $config{"options"}
(which hits most users).

unblock apt-mirror/0.5.4-1

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: benjamin.drung@profitbricks.com
Web: https://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Achim Weiss.
diff -Nru apt-mirror-0.5.3/apt-mirror apt-mirror-0.5.4/apt-mirror
--- apt-mirror-0.5.3/apt-mirror	2017-01-06 17:26:55.000000000 +0100
+++ apt-mirror-0.5.4/apt-mirror	2017-05-29 13:28:34.000000000 +0200
@@ -294,7 +294,7 @@
     if ( $line =~ $pattern_deb_line ) {
         $config{'type'} = $+{type};
         $config{'arch'} = $+{arch};
-        $config{'options'} = $+{options};
+        $config{'options'} = $+{options} ? $+{options} : "";
         $config{'uri'} = $+{uri};
         $config{'components'} = $+{components};
         if ( $config{'options'} =~ /arch=((?<arch>[\w\-]+)[,]*)/g ) {
@@ -666,7 +666,7 @@
                 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 );
                     }
@@ -729,6 +729,8 @@
 open FILES_ALL, ">" . get_variable("var_path") . "/ALL" or die("apt-mirror: can't write to intermediate file (ALL)");
 open FILES_NEW, ">" . get_variable("var_path") . "/NEW" or die("apt-mirror: can't write to intermediate file (NEW)");
 open FILES_MD5, ">" . get_variable("var_path") . "/MD5" or die("apt-mirror: can't write to intermediate file (MD5)");
+open FILES_SHA1, ">" . get_variable("var_path") . "/SHA1" or die("apt-mirror: can't write to intermediate file (SHA1)");
+open FILES_SHA256, ">" . get_variable("var_path") . "/SHA256" or die("apt-mirror: can't write to intermediate file (SHA256)");
 
 my %stat_cache = ();
 
@@ -813,7 +815,9 @@
         {    # Packages index
             $skipclean{ remove_double_slashes( $path . "/" . $lines{"Filename:"} ) } = 1;
             print FILES_ALL remove_double_slashes( $path . "/" . $lines{"Filename:"} ) . "\n";
-            print FILES_MD5 $lines{"MD5sum:"} . "  " . remove_double_slashes( $path . "/" . $lines{"Filename:"} ) . "\n";
+            print FILES_MD5 $lines{"MD5sum:"} . "  " . remove_double_slashes( $path . "/" . $lines{"Filename:"} ) . "\n" if defined $lines{"MD5sum:"};
+            print FILES_SHA1 $lines{"SHA1:"} . "  " . remove_double_slashes( $path . "/" . $lines{"Filename:"} ) . "\n" if defined $lines{"SHA1:"};
+            print FILES_SHA256 $lines{"SHA256:"} . "  " . remove_double_slashes( $path . "/" . $lines{"Filename:"} ) . "\n" if defined $lines{"SHA256:"};
             if ( need_update( $mirror . "/" . $lines{"Filename:"}, $lines{"Size:"} ) )
             {
                 print FILES_NEW remove_double_slashes( $uri . "/" . $lines{"Filename:"} ) . "\n";
@@ -887,6 +891,8 @@
 close FILES_ALL;
 close FILES_NEW;
 close FILES_MD5;
+close FILES_SHA1;
+close FILES_SHA256;
 
 ######################################################################################
 ## Main download
diff -Nru apt-mirror-0.5.3/CHANGELOG apt-mirror-0.5.4/CHANGELOG
--- apt-mirror-0.5.3/CHANGELOG	2017-01-06 17:36:37.000000000 +0100
+++ apt-mirror-0.5.4/CHANGELOG	2017-05-29 13:38:52.000000000 +0200
@@ -1,3 +1,11 @@
+0.5.4 (2017-05-29)
+  * Add limit_rate to example mirror.list (fixes #72)
+  * Fix use of uninitialized value $config{"options"} warning (fixes #68,
+    Debian bug #851979, #859601)
+  * Fix warning on repository without md5sum (fixes #66)
+  * Write SHA1 and SHA256 in addition to MD5
+  * Also download xz-compressed Components-$arch.yml.xz (fixes #69)
+
 0.5.3 (2017-01-06)
   * Add support for 'deb [arch=amd64] ...' format (fixes #32, #65)
   * Create directories including their parents
diff -Nru apt-mirror-0.5.3/debian/changelog apt-mirror-0.5.4/debian/changelog
--- apt-mirror-0.5.3/debian/changelog	2017-01-06 17:46:06.000000000 +0100
+++ apt-mirror-0.5.4/debian/changelog	2017-05-29 14:02:33.000000000 +0200
@@ -1,3 +1,14 @@
+apt-mirror (0.5.4-1) unstable; urgency=medium
+
+  * New upstream bug-fix release.
+    - Fix use of uninitialized value $config{"options"} warning
+      (Closes: #851979, #859601)
+    - Fix warning on repository without md5sum
+    - Write SHA1 and SHA256 in addition to MD5
+    - Also download xz-compressed Components-$arch.yml.xz
+
+ -- Benjamin Drung <bdrung@debian.org>  Mon, 29 May 2017 14:02:33 +0200
+
 apt-mirror (0.5.3-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru apt-mirror-0.5.3/Makefile apt-mirror-0.5.4/Makefile
--- apt-mirror-0.5.3/Makefile	2017-01-06 17:35:25.000000000 +0100
+++ apt-mirror-0.5.4/Makefile	2017-05-29 12:17:41.000000000 +0200
@@ -1,4 +1,4 @@
-VERSION := 0.5.3
+VERSION := 0.5.4
 DIST := apt-mirror CHANGELOG LICENSE Makefile mirror.list postmirror.sh README.md .perltidyrc
 BASE_PATH := /var/spool/apt-mirror
 PREFIX ?= /usr/local
diff -Nru apt-mirror-0.5.3/mirror.list apt-mirror-0.5.4/mirror.list
--- apt-mirror-0.5.3/mirror.list	2014-06-24 10:28:42.000000000 +0200
+++ apt-mirror-0.5.4/mirror.list	2017-04-13 18:56:00.000000000 +0200
@@ -6,6 +6,7 @@
 set defaultarch       i386
 set run_postmirror    0
 set nthreads          20
+set limit_rate        100m
 set _tilde            0
 # Use --unlink with wget (for use with hardlinked directories)
 set unlink            1

--- End Message ---
--- Begin Message ---
Unblocked apt-mirror.

--- End Message ---

Reply to: