aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2014-11-30 12:44:31 +0100
committerRémi Verschelde <remi@verschelde.fr>2014-11-30 12:44:31 +0100
commit25d8b26294aaaa1ae6a6a6039243bc60ac10f9ee (patch)
treec76bee21a1ad937e5a0b0dac6151925e31705b94 /lib
parent66cbe6d24b8f96bf53b3f6a546c89d69f70fccd6 (diff)
downloadmgaadvisories-25d8b26294aaaa1ae6a6a6039243bc60ac10f9ee.tar
mgaadvisories-25d8b26294aaaa1ae6a6a6039243bc60ac10f9ee.tar.gz
mgaadvisories-25d8b26294aaaa1ae6a6a6039243bc60ac10f9ee.tar.bz2
mgaadvisories-25d8b26294aaaa1ae6a6a6039243bc60ac10f9ee.tar.xz
mgaadvisories-25d8b26294aaaa1ae6a6a6039243bc60ac10f9ee.zip
Add [name] argument to mgaadv to prefill the template
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Advisories.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index cd56b56..d03a632 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -728,7 +728,7 @@ sub dumpdb {
}
sub newadv {
- my ($type, $bugnum) = @_;
+ my ($type, $bugnum, $name) = @_;
my $file = $config->{advisories_dir} . '/' . $bugnum . '.adv';
if (-f $file) {
print STDERR "File $file already exists\n";
@@ -742,6 +742,7 @@ sub newadv {
my $vars = {
type => $type,
bugnum => $bugnum,
+ name => $name,
};
process_template($template, 'newadvisory', $vars, $bugnum, 'adv');
return $file;