diff options
author | intrigeri <intrigeri@boum.org> | 2016-05-06 15:21:29 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2016-05-06 15:21:29 +0000 |
commit | 002f1eba525d9341cc1da69784acf6a488b7b525 (patch) | |
tree | dfb8de16cfa8926b56ccec10403b41aea01d7a37 /files/reprepro/snapshots | |
parent | ad804d10e28e2eac4b3a7f028ffed8936676c93f (diff) |
Factorize to de-duplicate a bit.
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-x | files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots | 3 |
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: |