From 0dd8c0ecc5851f02735e63a3046f158679d2edeb Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Wed, 6 Aug 2014 11:08:41 +0100 Subject: Close bugs in order. Very minor issue but we may as well close the bugs in order of advisory. --- lib/MGA/Advisories.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index d96c039..7a203fb 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -537,7 +537,7 @@ sub close_bugs { report_log("Cannot close advisory bugs. Could not initialise bugzilla"); return; } - foreach my $adv (keys %{$advdb->{advisories}}) { + foreach my $adv (sort keys %{$advdb->{advisories}}) { next if $advdb->{advisories}{$adv}{status}{bug_closed}; my $bugnum = 0; -- cgit v1.2.1