summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorCyril Brulebois <cyril@debamax.com>2016-04-05 19:08:04 +0200
committerCyril Brulebois <cyril@debamax.com>2016-04-05 19:08:04 +0200
commit025b7d154d3cf571d503eea68187f9ace7b534d4 (patch)
tree0d832a8bce93b3fe16a7a29bfd60831546f0ab83 /files/reprepro/snapshots
parent8c9f307ece2dc0015ad6dbd8241f012d472eee71 (diff)
Improve last step reporting in dry-run mode.
Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots13
1 files changed, 9 insertions, 4 deletions
diff --git a/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots b/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
index 93cefcb..9f2b9c1 100755
--- a/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
+++ b/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
@@ -130,8 +130,13 @@ foreach my $dir (@snapshots_dirs) {
}
if ($removed > 0) {
- verbose_print("at least one snapshot was removed, calling reprepro deleteunreferenced\n");
- runx('reprepro', @reprepro_options, 'deleteunreferenced')
- if ! $dryrun;
- verbose_print("done\n");
+ verbose_print("at least one snapshot was removed\n");
+ if ($dryrun) {
+ verbose_print("should be running: reprepro deleteunreferenced\n");
+ }
+ else {
+ verbose_print("running: reprepro deleteunreferenced\n");
+ runx('reprepro', @reprepro_options, 'deleteunreferenced');
+ verbose_print("all done\n");
+ }
}