Bug#871657: dch: please add --sru option
Dominique Dumont
dod at debian.org
Tue Oct 24 09:43:18 UTC 2017
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
--
https://github.com/dod38fr/ -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/ -o- irc: dod at irc.debian.org
More information about the devscripts-devel
mailing list