X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FControl%2FService.pm;fp=Debbugs%2FControl%2FService.pm;h=fcd5d70b7805d8ab56feae46fafca63fd0dda386;hb=fbf96e721f2ccf58041ccfe687ab2f1c9b7af4b0;hp=239f6539977ffea193d0276178d71bfaadec4dad;hpb=251c87a921b1eebc5fb8de1ce796eaa78df2f190;p=debbugs.git diff --git a/Debbugs/Control/Service.pm b/Debbugs/Control/Service.pm index 239f653..fcd5d70 100644 --- a/Debbugs/Control/Service.pm +++ b/Debbugs/Control/Service.pm @@ -149,6 +149,7 @@ my %control_grammar = limit => qr/(?i)^limit\:?\s+(\S.*\S)\s*$/, affects => qr/(?i)^affects?\s+\#?(-?\d+)(?:\s+((?:[=+-])?)\s*(\S.*)?)?\s*$/, summary => qr/(?i)^summary\s+\#?(-?\d+)\s*(\d+|)\s*$/, + outlook => qr/(?i)^outlook\s+\#?(-?\d+)\s*(\d+|)\s*$/, owner => qr/(?i)^owner\s+\#?(-?\d+)\s+((?:\S.*\S)|\!)\s*$/, noowner => qr/(?i)^noowner\s+\#?(-?\d+)\s*$/, unarchive => qr/(?i)^unarchive\s+#?(\d+)$/, @@ -655,6 +656,19 @@ sub control_line { print {$transcript} "Failed to give $ref a summary: ".cleanup_eval_fail($@,$debug)."\n"; } + } elsif ($ctl eq 'outlook') { + my $outlook_msg = length($matches[1])?$matches[1]:undef; + eval { + outlook(@{$param{common_control_options}}, + bug => $ref, + outlook => $outlook_msg, + ); + }; + if ($@) { + $errors++; + print {$transcript} "Failed to give $ref a outlook: ".cleanup_eval_fail($@,$debug)."\n"; + } + } elsif ($ctl eq 'owner') { my $newowner = $matches[1]; if ($newowner eq '!') {