From ae5825a845900aa4d11ac726cebed8cacab07c25 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 4 Aug 2014 11:52:46 +0100 Subject: Add a log entry when moving packages. --- lib/MGA/Advisories.pm | 1 + tmpl/report.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index 8a9099d..689ad59 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -157,6 +157,7 @@ sub move_packages { foreach my $rel (keys %{$advdb->{advisories}{$adv}{src}}) { foreach my $media (keys %{$advdb->{advisories}{$adv}{src}{$rel}}) { foreach my $srpm (@{$advdb->{advisories}{$adv}{src}{$rel}{$media}}) { + report_log("Moving package $srpm (plus matching binaries) for $adv"); push(@cmd, "$rel/$media/$srpm.src.rpm"); } } diff --git a/tmpl/report.txt b/tmpl/report.txt index a1c629d..26978bf 100644 --- a/tmpl/report.txt +++ b/tmpl/report.txt @@ -1,7 +1,7 @@ [% IF advdb.error -%] Error: [% advdb.error %] [% ELSE %] -Advisories updates : +Advisories updates: [% FOREACH report_log IN report_logs -%] - [% report_log %] [% END -%] -- cgit v1.2.1