From 0ba9377aa206099e8ac8ca4b784ffb16d71640f9 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 21 Jul 2013 09:10:56 +0000 Subject: Allow specifying .adv extension with the publish command --- lib/MGA/Advisories.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/MGA/Advisories.pm') diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index b47e11d..97fc77c 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -85,6 +85,7 @@ sub next_id { sub assign_id { my ($bugnum) = @_; my $advfile = "$config->{advisories_dir}/$bugnum.adv"; + $advfile =~ s/\.adv\.adv$/.adv/; my $adv = LoadFile($advfile); if ($adv->{ID}) { print STDERR "$bugnum already has an ID assigned: $adv->{ID}\n"; -- cgit v1.2.1