Subject: | extend mk_accessors for CPANPLUS::Dist::RPM |
Hi,
this adds support for CPANPLUS::Dist::RPM to be able to add
a "Requires:" list to spec.
Reagrds Chris
P.S.:
Would it be possible to have Sources on github ?
Would make contribution easier. THX
Subject: | CPANPLUS-0.9007-Module_reqs.patch |
diff -ruN CPANPLUS-0.9007-orig/lib/CPANPLUS/Module.pm CPANPLUS-0.9007/lib/CPANPLUS/Module.pm
--- CPANPLUS-0.9007-orig/lib/CPANPLUS/Module.pm 2010-07-09 13:20:22.000000000 +0200
+++ CPANPLUS-0.9007/lib/CPANPLUS/Module.pm 2010-08-17 11:15:32.000000000 +0200
@@ -241,6 +241,15 @@
Might be undefined if the distribution didn't have any prerequisites.
+=item reqs
+
+A hashref of reqs this distribution was found to have. Will look
+something like this:
+
+ { Carp => 0.01, strict => 0 }
+
+Might be undefined if the distribution didn't have any requisites.
+
=item configure_requires
Like prereqs, but these are necessary to be installed before the
@@ -336,7 +345,7 @@
return $self->_status if $self->_status;
my $acc = Object::Accessor->new;
- $acc->mk_accessors( qw[ installer_type dist_cpan dist prereqs
+ $acc->mk_accessors( qw[ installer_type dist_cpan dist prereqs reqs
signature extract fetch readme uninstall
created installed prepared checksums files
checksum_ok checksum_value _fetch_from