X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FAuthorCheck.pm;h=4507837a484a28d34227b0597161b605154e2eaa;hb=38ed54cd3980bd344e13fad27ed11b935ae932aa;hp=4d0c528aa5a94846bb505dc836734afde010c9db;hpb=7159a4562c6a8b116d38eba3d2ac8bd025859ecd;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/AuthorCheck.pm b/t/lib/DBICTest/AuthorCheck.pm index 4d0c528..4507837 100644 --- a/t/lib/DBICTest/AuthorCheck.pm +++ b/t/lib/DBICTest/AuthorCheck.pm @@ -43,15 +43,16 @@ sub _check_author_makefile { push @fail_reasons, "Missing ./inc directory"; } - if (not $mf_mtime) { + if(not $mf_mtime) { push @fail_reasons, "Missing ./Makefile"; } - elsif($mf_mtime < $mf_pl_mtime) { - push @fail_reasons, "./Makefile.PL is newer than ./Makefile"; - } - - if ($mf_mtime < $optdeps_mtime) { - push @fail_reasons, "./$optdeps is newer than ./Makefile"; + else { + if($mf_mtime < $mf_pl_mtime) { + push @fail_reasons, "./Makefile.PL is newer than ./Makefile"; + } + if($mf_mtime < $optdeps_mtime) { + push @fail_reasons, "./$optdeps is newer than ./Makefile"; + } } if (@fail_reasons) {