summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-06 18:20:30 +0000
committerintrigeri <intrigeri@boum.org>2016-05-06 18:20:30 +0000
commitf41a652fbd511961751e2e7141f00e89f0a07cfb (patch)
tree2f516ce776d85c95432f4b9ffb680011fc92c116
parentd4a2df2d58b3ca91d8026031be56599b3e87d665 (diff)
Fix regression that broke the listing of references.
chomp returns the number of chomped characters, so it's not usable with map.
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots2
1 files changed, 1 insertions, 1 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 c01c3d1..009228b 100755
--- a/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
+++ b/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
@@ -73,12 +73,12 @@ verbose_print("found snapshots directories: @snapshots_dirs\n");
# (use a shell pipeline to avoid loading the entire output of
# dumpreferences into memory; we've seen it take no less than 7.5 GiB):
my @reprepro_references =
- map { chomp }
`reprepro -b '$archive_dir' dumpreferences \\
| awk '/^s=/ {print \$1}' \\
| sort -u`;
${^CHILD_ERROR_NATIVE} == 0
or die "E: Failed to load references: ${^CHILD_ERROR_NATIVE}";
+chomp @reprepro_references;
verbose_print("reprepro-known snapshot references:", (join "\n - ", '', @reprepro_references), "\n");
my $now = DateTime->now();