diff options
Diffstat (limited to 'mgaadv')
-rwxr-xr-x | mgaadv | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -69,10 +69,10 @@ END run => \&newadv, descr => 'Create a new advisory file', usage => <<END, -$0 new [type] [bugnum] +$0 new [type] [bugnum] [name] -Create a new advisory file. [type] should be security or bugfix and -[bugnum] is the bugzilla bug number. +Create a new advisory file. [type] should be security or bugfix, +[bugnum] is the bugzilla bug number and [name] is the package name. END }, nextid => { @@ -173,9 +173,9 @@ sub process { sub editor { $ENV{EDITOR} || $ENV{VISUAL} || '/usr/bin/editor' } sub newadv { - usageexit('usage', $_[0]) unless @_ == 3; - my ($new, $type, $bugnum) = @_; - my $file = MGA::Advisories::newadv($type, $bugnum); + usageexit('usage', $_[0]) unless @_ == 4; + my ($new, $type, $bugnum, $name) = @_; + my $file = MGA::Advisories::newadv($type, $bugnum, $name); if ($file) { system(editor, $file); } |