aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-08-04 11:52:46 +0100
committerColin Guthrie <colin@mageia.org>2014-08-05 17:35:00 +0100
commitae5825a845900aa4d11ac726cebed8cacab07c25 (patch)
tree32778f2ce8f0df5a59da8b703951abd54b24d641
parentce1effee5136eceaf81ee14bfea4325a6ca03184 (diff)
downloadmgaadvisories-ae5825a845900aa4d11ac726cebed8cacab07c25.tar
mgaadvisories-ae5825a845900aa4d11ac726cebed8cacab07c25.tar.gz
mgaadvisories-ae5825a845900aa4d11ac726cebed8cacab07c25.tar.bz2
mgaadvisories-ae5825a845900aa4d11ac726cebed8cacab07c25.tar.xz
mgaadvisories-ae5825a845900aa4d11ac726cebed8cacab07c25.zip
Add a log entry when moving packages.
-rw-r--r--lib/MGA/Advisories.pm1
-rw-r--r--tmpl/report.txt2
2 files changed, 2 insertions, 1 deletions
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 -%]