Package: libmodule-depends-perl Version: 0.14-3 Tags: patch Severity: normal
It doesn't look at META.json, and some dists [1] use it instead of META.yml. patch attached. 1: http://search.cpan.org/dist/Dist-Zilla/MANIFEST -- _________________________ Ryan Niebur [email protected]
--- a/lib/Module/Depends.pm
+++ b/lib/Module/Depends.pm
@@ -73,15 +73,15 @@
sub _find_modules {
my $self = shift;
- my $file = 'META.yml';
+ foreach my $file (qw/META.yml META.json/) {
if (-e $file) {
my $meta = LoadFile( $file );
$self->requires( $meta->{requires} );
$self->build_requires( $meta->{build_requires} );
+ return $self;
}
- else {
- $self->error( "No META.yml found in ". $self->dist_dir );
- }
+ }
+ $self->error( "No META.yml found in ". $self->dist_dir );
return $self;
}
signature.asc
Description: Digital signature

