From 25d8b26294aaaa1ae6a6a6039243bc60ac10f9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 30 Nov 2014 12:44:31 +0100 Subject: Add [name] argument to mgaadv to prefill the template --- lib/MGA/Advisories.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.1