Commit 02c3763c authored by Colin Watson's avatar Colin Watson

During the cleanup phase, remove local copies of files that could not be...

During the cleanup phase, remove local copies of files that could not be downloaded; for example, this ensures that a local InRelease file is removed when it has been removed from the remote host (closes: #866238).
parent 78569689
debmirror (1:2.27) UNRELEASED; urgency=medium
* Fix typo in "Verifying checksums" message (closes: #856163).
* During the cleanup phase, remove local copies of files that could not be
downloaded; for example, this ensures that a local InRelease file is
removed when it has been removed from the remote host (closes: #866238).
-- Colin Watson <cjwatson@debian.org> Sat, 25 Feb 2017 21:39:52 +0000
......
......@@ -2697,7 +2697,8 @@ sub cleanup_unknown_files {
chomp $file;
$file=~s:^\./::;
next if (@di_dists && $file =~ m:installer-\w(-|\w)*/current/images/:);
unless ((exists $files{$file} && $files{$file} != 2) or
unless ((exists $files{$file} &&
$files{$file} != -1 && $files{$file} != 2) or
(defined($ignore) && $file=~/$ignore/o)) {
say("deleting $file") if ($verbose);
if (! $do_dry_run) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment