Subject: | error messages could be improved |
On first use
cpan2dist --format CPANPLUS::Dist::Mdv [module]
returns:
key 'file' (/root/.cpanplus/5.10.1/build/lib/PluginTestApp/Controller) is
of invalid type for 'CPANPLUS::Internals::Utils::_mode_plus_w' provided
by CPANPLUS::Internals::Extract::_extract at
/usr/lib/perl5/vendor_perl/5.10.0/CPANPLUS/Internals/Extract.pm line 188
Key 'file' (/root/.cpanplus/5.10.1/build/Chained/Auto.pm) is of invalid
type for 'CPANPLUS::Internals::Utils::_mode_plus_w' provided by
CPANPLUS::Internals::Extract::_extract at
/usr/lib/perl5/vendor_perl/5.10.0/CPANPLUS/Internals/Extract.pm line 188
Key 'file' (/root/.cpanplus/5.10.1/build/ACLTestApp.pm) is of invalid
type for 'CPANPLUS::Internals::Utils::_mode_plus_w' provided by
CPANPLUS::Internals::Extract::_extract at
/usr/lib/perl5/vendor_perl/5.10.0/CPANPLUS/Internals/Extract.pm line 188
==> MISSING Signature file! <==
[ERROR] need to create rpm tree structure in your home
[ERROR] Format 'CPANPLUS::Dist::Mdv' is not available
It would be helpful if it either created the rpm tree structure in the
home directory for you if it doesn't exist or at least explained that you
need:
~/rpmbuild/BUILD/
~/rpmbuild/BUILDROOT/
~/rpmbuild/RPMS/
~/rpmbuild/SOURCES/
~/rpmbuild/SPECS/
~/rpmbuild/SRPMS
The invalid type errors make it look like the module is broken, rather
than just that the directory structure is missing.