Hi Gregor, Thanks for catching this.
On Thu, 2022-12-08 at 00:45 +0100, gregor herrmann wrote:
> As of today, duck (called in any source package directory) fails with
>
> Can't close(GLOB(0x558bebc05958)) filehandle: 'Is a directory' at
> /usr/share/duck/lib/checks/patch_files.pm line 101'
>
> 92 # iterate over all patchdirs, process all files found
> 93 foreach my $patchdir (@patchdirs) {
> 94 my $dirhandle = dir($patchdir)->open;
> 95
> 96 while (my $patchfile = $dirhandle->read) {
> 97 open my $pf, "<", $patchdir . "/" .
> $patchfile;
> 98
> 99 my @pf_raw = <$pf>;
> 100
> 101 close($pf);
>
> This may or may not be caused by a recent change in src:perl [0],
> hence
> cc'in the perl maintainers
Regardless of if it's indeed a problem introduced by the new perl
upload, I'll fix it in the code. The read() will always return at the
very least `.` and `..`, and those should definitly be skipped in that
context.
--
Baptiste Beauplat
signature.asc
Description: This is a digitally signed message part

