aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--lib/MGA/Advisories.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 761351d..d7bd63b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- set template output to utf8
+- allow specifying .adv extension with the publish command
Version 0.12
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";