Perl-Toolchain-Gang / ExtUtils-Manifest

Utilities to write and check a MANIFEST file
https://metacpan.org/release/ExtUtils-Manifest/
Other
4 stars 7 forks source link

_fix_manifest warns about unit values on empty manifest #15

Open kentfredric opened 9 years ago

kentfredric commented 9 years ago

When MANIFEST is a completely empty file, _fix_manifest assumes it has lines and spews warnings:

Use of uninitialized value $manifest[-1] in string eq at /home/kent/perl/forks/ExtUtils-Manifest/lib/ExtUtils/Manifest.pm line 724.
        ExtUtils::Manifest::_fix_manifest("MANIFEST") called at /home/kent/perl/forks/ExtUtils-Manifest/lib/ExtUtils/Manifest.pm line 690
        ExtUtils::Manifest::maniadd(HASH(0x2c2ea80)) called at t/01-filenames.t line 23

Repro:

   path("MANIFEST")->spew_raw("");
   maniadd({ anything => "anyvalue" });