Skip to content

Commit 78de0f7

Browse files
committed
improve TEST_REQUIRES backward compat line
1 parent 07e6a9a commit 78de0f7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Makefile.PL

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ sub WriteMakefile1
8282
die "License not specified" if ( !exists( $params{LICENSE} ) );
8383
$params{TEST_REQUIRES}
8484
and $eumm_version < 6.6303
85-
and $params{BUILD_REQUIRES} =
86-
$params{BUILD_REQUIRES}
87-
? { %{ $params{BUILD_REQUIRES} }, %{ delete $params{TEST_REQUIRES} } }
88-
: delete $params{TEST_REQUIRES};
85+
and $params{BUILD_REQUIRES} = { %{ $params{BUILD_REQUIRES} || {} }, %{ delete $params{TEST_REQUIRES} } };
8986
#EUMM 6.5502 has problems with BUILD_REQUIRES
9087
$params{BUILD_REQUIRES}
9188
and $eumm_version < 6.5503

0 commit comments

Comments
 (0)