...
 
Commits (2)
......@@ -2,6 +2,11 @@ debmirror (1:2.28) UNRELEASED; urgency=medium
* Change priority to optional, since "Priority: extra" is now deprecated.
* Move VCS to salsa.debian.org.
* Fix use of uninitialised value $buf in name_release.
* Depend on xz-utils (LP: #1614779); xz is needed for all suites that
publish .xz but not uncompressed index files, or .gz but not .xz without
--slow-cpu, so I think that's common enough to rise above the level of a
Recommends.
-- Colin Watson <cjwatson@debian.org> Sun, 19 Nov 2017 10:11:27 +0000
......
......@@ -12,7 +12,8 @@ Architecture: all
Depends: ${misc:Depends}, perl (>= 5.10), libnet-perl, libdigest-md5-perl,
libdigest-sha-perl, liblockfile-simple-perl, rsync,
bzip2, libwww-perl (>= 5.815),
perl (>= 5.22) | libnet-inet6glue-perl
perl (>= 5.22) | libnet-inet6glue-perl,
xz-utils
Recommends: gpgv, patch, ed
Suggests: gnupg
Description: Debian partial mirror script, with ftp and package pool support
......
......@@ -2153,10 +2153,11 @@ sub get_release {
sub name_release {
my ($type, $tdir, $dist) = @_;
my ($buf, $codename, $suite);
my ($codename, $suite);
my $origin = "unknown";
if (-f "$tdir/Release") {
my $buf = "";
if (open RELEASE, "<$tdir/Release") {
while (<RELEASE>) {
last if /^MD5Sum:/;
......