[dh-make-perl-cvs-dev] CVS dh-make-perl

CVS User csacca-guest cvs@dh-make-perl.alioth.debian.org
Sun, 27 Mar 2005 18:04:27 +0000


Update of /cvsroot/dh-make-perl/dh-make-perl
In directory haydn:/tmp/cvs-serv24360

Modified Files:
	dh-make-perl 
Log Message:
Added a check to determine if a module we're getting from cpan is core 
and would thus result in a download of the perl source.  Closes: #136732


--- /cvsroot/dh-make-perl/dh-make-perl/dh-make-perl	2005/03/25 23:35:12	1.28
+++ /cvsroot/dh-make-perl/dh-make-perl/dh-make-perl	2005/03/27 18:04:26	1.29
@@ -226,6 +226,12 @@
 	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;