Niels Thykier wrote: > In > https://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-gainrootapi > we find the following example: > > """ > Examples of valid use of the gain root command: > > # sh-syntax (assumes set -e semantics for error handling) > $DEB_GAIN_ROOT_CMD some-cmd --which-requires-root > > # perl > my @cmd = ('some-cmd', '--which-requires-root'); > unshift(@cmd, split(' ', $ENV{DEB_GAIN_ROOT_CMD})) if $ENV{DEB_GAIN_ROOT_CMD}; > system(@cmd) == or die("@cmd failed"); > """ > > The Perl code is invalid. There is missing a 0 after "==" and before "or > die(...)".
(I don't think this is normative, so probably not needed, but just in case:) Seconded. Thanks for catching it. Sincerely, Jonathan

