Bug#871657: dch: please add --sru option

Antoine Beaupré anarcat at orangeseeds.org
Tue Oct 24 12:26:18 UTC 2017


On 2017-10-24 11:43:18, Dominique Dumont wrote:
> On Monday, 23 October 2017 17:36:50 CEST Antoine Beaupré wrote:
>> if ($opt_i?1:0) + ($opt_a?1:0) + ($opt_e?1:0) + ($opt_r?1:0) + ($opt_v?1:0)
>> + ($opt_d?1:0) + ($opt_n?1:0) + ($opt_bn?1:0) + ($opt_qa?1:0) +
>> ($opt_R?1:0) + ($opt_s?1:0) + ($opt_lts?1:0) + ($opt_team?1:0) +
>> ($opt_bpo?1:0) + ($opt_l?1:0) + ($opt_stable?1:0)> 1; 
>
> err, how about a shorter test like the following one ?
>
>  if (scalar grep { $_ } ( $opt_i, $opt_a, $opt_e, ...) <  1) 
>
> HTH

There are a bilion such patches to be done in dch. I'm just following
the existing style...

a.

-- 
Imagine a world in which every single person on the planet is given
free access to the sum of all human knowledge.
                         - Jimmy Wales, co-founder of Wikipedia



More information about the devscripts-devel mailing list