Skip Menu |

This queue is for tickets about the Devel-PatchPerl CPAN distribution.

Report information
The Basics
Id: 128573
Status: resolved
Priority: 0/
Queue: Devel-PatchPerl

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.54
Fixed in: 1.56



Subject: exit from a function?
eval { Devel::PatchPerl->patch_source($perlversion, "."); }; ^^ should it return or not? It may? It may not? Reading Changes for version 1.54 : : Change: 498fcff11abd4e5f06a4e916c2296323c1125ced Author: Chris 'BinGOs' Williams <chris@bingosnet.co.uk> Date : 2019-02-18 11:06:49 +0000 : Updated hints and added certified perl version : If perl to be patched is greater than or equal to certified perl version than patchperl will exit doing nothing It seems to me that it exits. Bug or feature?
Sorry, I was a bit in hurry, when I wrote above. Looking in the code I see in commit 498fcff11abd4e5f06a4e916c2296323c1125ced that there is an exit within patch_source() in line 290 of lib/Devel/PatchPerl.pm It is not documented in the manpage of Devel::PatchPerl. Pleas clarify. Thanks!
I wholeheartedly agree that the "exit" on line 292 should be a "return". I also think this is a critical issue, as it will break all build scripts that now exit if there is no patch due
I note it is fixed in 1.56. Thank you!