Skip to content

Commit

Permalink
no_symlinks checks only files in MANIFEST, use ExtUtils::Manifest::ma…
Browse files Browse the repository at this point in the history
…niread
  • Loading branch information
Reini Urban authored and daxim committed Oct 30, 2011
1 parent c5189da commit 0c09b57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Build.PL
Expand Up @@ -25,6 +25,7 @@ my $build = Module::Build->new(
'LWP::Simple' => 0,
'perl' => 5.006,
'Test::CPAN::Meta::YAML::Version' => '0',
'ExtUtils::Manifest' => 0,
},
build_requires => {
'Test::More' => '0',
Expand Down
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -9,6 +9,7 @@
- some pod improvements (jquelin)
- fix rt#65903 - no more Test::YAML::Meta::Version on CPAN (jquelin)
- replace YAML::Syck with YAML::Any (rurban)
- no_symlinks checks only files in MANIFEST, use ExtUtils::Manifest::maniread (rurban)

0.85 2009-07-12, Alexandr Ciornii
- fix fails on non-Win32
Expand Down
8 changes: 6 additions & 2 deletions lib/Module/CPANTS/Kwalitee/Files.pm
Expand Up @@ -9,6 +9,7 @@ use Data::Dumper;
use Readonly;
use Software::LicenseUtils;
use File::Slurp qw(slurp);
use ExtUtils::Manifest;

sub order { 10 }

Expand Down Expand Up @@ -60,11 +61,14 @@ sub analyse {
$me->d->{size_unpacked}=$size;

# find symlinks
my $manifest = -f catfile($distdir, 'MANIFEST')
? ExtUtils::Manifest::maniread(catfile($distdir, 'MANIFEST'))
: {};
my @symlinks;
foreach my $f (@dirs, @files) {
my $p=catfile($distdir,$f);
my $p = catfile($distdir,$f);
if (-l $f) {
push(@symlinks,$f);
push(@symlinks,$f) if $manifest and exists $manifest->{$f};
}
}

Expand Down

0 comments on commit 0c09b57

Please sign in to comment.