summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-15 11:08:45 +0100
committerJoey Hess <joey@kitenet.net>2013-05-15 13:28:31 -0400
commit6c69283ac86b29a5d084472367640fc94aee39c4 (patch)
treef016a79427fdbde5082ac514ba83365691799320
parent15fb047e9219d476339b3d4fbe6865e6429cbec2 (diff)
Bug#708355: debmirror: confusing output with --precleanup
Package: debmirror Version: 1:2.14 Severity: minor Tags: patch If you use the --precleanup option, debmirror says: Will clean up before mirroring. Will NOT clean up. This is pretty confusing; but it looks cosmetic.
-rwxr-xr-xdebmirror3
1 files changed, 1 insertions, 2 deletions
diff --git a/debmirror b/debmirror
index ca9abd6..872825b 100755
--- a/debmirror
+++ b/debmirror
@@ -826,8 +826,7 @@ say("Download at most $max_batch files.") if ($max_batch > 0);
say("Download at most $rsync_batch files per rsync call.") if ($download_method eq "rsync");
if ($pre_cleanup) {
say("Will clean up before mirroring.");
-}
-if ($post_cleanup) {
+} elsif ($post_cleanup) {
say("Will clean up after mirroring.");
} else {
say("Will NOT clean up.");