diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-07-21 09:10:56 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-07-21 09:10:56 +0000 |
commit | 0ba9377aa206099e8ac8ca4b784ffb16d71640f9 (patch) | |
tree | c78143d55206872e60240a5ad361e8ef635a5f34 /lib/MGA | |
parent | dedf7fae7dd0041572a8a5df89c52e310262b097 (diff) | |
download | mgaadvisories-0ba9377aa206099e8ac8ca4b784ffb16d71640f9.tar mgaadvisories-0ba9377aa206099e8ac8ca4b784ffb16d71640f9.tar.gz mgaadvisories-0ba9377aa206099e8ac8ca4b784ffb16d71640f9.tar.bz2 mgaadvisories-0ba9377aa206099e8ac8ca4b784ffb16d71640f9.tar.xz mgaadvisories-0ba9377aa206099e8ac8ca4b784ffb16d71640f9.zip |
Allow specifying .adv extension with the publish command
Diffstat (limited to 'lib/MGA')
-rw-r--r-- | lib/MGA/Advisories.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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"; |