Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-Perltidy CPAN distribution.

Report information
The Basics
Id: 71075
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-Perltidy

People
Owner: Nobody in particular
Requestors: bailey [...] mail.newman.upenn.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Logic error in D::Z::App::Command::perltidy
The combination of C<unless> and C<and> gives an unintended result when a perltidyrc file is not specified to Dist::Zilla::App::Command::perltidy. Fixed by this patch: --- perltidy.pm~ 2010-06-02 20:57:10.000000000 -0500 +++ perltidy.pm 2011-09-19 14:40:19.000000000 -0500 @@ -27,7 +27,7 @@ } # Verify that file specified is readable - unless ( $perltidyrc and -r $perltidyrc ) { + if ( $perltidyrc and not -r $perltidyrc ) { $self->zilla->log_fatal( [ "specified perltidyrc is not readable: %s", $perltidyrc ] ); }
This command is not part of Dist-Zilla. I have transferred it to the appropriate queue. -- rjbs
already applied in an old version. Thanks