Bug#991166: ftpsync: Contents* and dep11/* metadata are incorrectly updated in stage1

2021-07-16 Thread Raphael Hertzog
Control: tags -1 + patch

I have prepared a MR for this:
https://salsa.debian.org/mirror-team/archvsync/-/merge_requests/2

Changes are trivial but they are currently untested.

Cheers,
-- 
Raphaël Hertzog ◈ Offensive Security ◈ Kali Linux Developer



Bug#991166: ftpsync: Contents* and dep11/* metadata are incorrectly updated in stage1

2021-07-16 Thread Raphaël Hertzog
Package: ftpsync
Version: 20180513+nmu1
Severity: important
User: de...@kali.org
Usertags: origin-kali
X-Debbugs-Cc: raph...@offensive-security.com

In Kali we encountered many failed "apt update" with a mirror that was
slow to update and it always failed due to invalid checksums on
"Contents-amd64.gz".

Looking more closely, I discovered that "ftpsync" was not really kept
up-to-date with other files that are listed in the Release file and that
should be updated in stage 2 instead of stage 1.

I noticed in particular that dep11/* should also be handled like we
do for "i18n/*". And we might want to do it also for MD5SUMS/SHA256SUMS
files of debian-installer... although updates there are not very frequent.

Thank you in advance!

-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/16 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ftpsync depends on:
ii  postfix [mail-transport-agent]  3.5.6-1+b1
ii  rsync   3.2.3-4

Versions of packages ftpsync recommends:
ii  curl  7.74.0-1.3+b1

ftpsync suggests no packages.

-- no debconf information