summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-06 15:21:29 +0000
committerintrigeri <intrigeri@boum.org>2016-05-06 15:21:29 +0000
commit002f1eba525d9341cc1da69784acf6a488b7b525 (patch)
treedfb8de16cfa8926b56ccec10403b41aea01d7a37
parentad804d10e28e2eac4b3a7f028ffed8936676c93f (diff)
Factorize to de-duplicate a bit.
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots3
1 files changed, 1 insertions, 2 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 e1d4723..8f7beda 100755
--- a/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
+++ b/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
@@ -115,14 +115,13 @@ foreach my $dir (@snapshots_dirs) {
if (grep { $db_id eq $_ } @reprepro_references) {
if ($dryrun) {
verbose_print(" should be forgetting: $db_id\n");
- $removed++;
}
else {
verbose_print(" forgetting: $db_id\n");
runx('reprepro', @reprepro_options, '_removereferences', $db_id);
- $removed++;
verbose_print(" forgotten: $db_id\n");
}
+ $removed++;
}
# Remove actual files: