[dh-make-perl-cvs-dev] CVS dh-make-perl
CVS User csacca-guest
cvs@dh-make-perl.alioth.debian.org
Thu, 24 Mar 2005 04:33:30 +0000
Update of /cvsroot/dh-make-perl/dh-make-perl
In directory haydn:/tmp/cvs-serv12596
Modified Files:
dh-make-perl
Log Message:
Makes sure that the user doesn't try to make core module packages with
--cpan as that results in the downloading of the entire perl tree
(closes: #136732)
--- /cvsroot/dh-make-perl/dh-make-perl/dh-make-perl 2005/03/24 04:03:55 1.25
+++ /cvsroot/dh-make-perl/dh-make-perl/dh-make-perl 2005/03/24 04:33:29 1.26
@@ -254,6 +254,11 @@
my $tarball;
$mod_cpan_version = '';
if ($cpanmodule) {
+ # Is the module a core module
+ if ((grep(/$cpanmodule/, @pragmas)) || (grep(/$cpanmodule/, @stdmodules))) {
+ die "$cpanmodule is a standard module.\n";
+ }
+
require CPAN;
CPAN::Config->load;