r27288 - /trunk/dh-make-perl/dh-make-perl

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Wed Nov 26 10:41:31 UTC 2008


Author: dmn
Date: Wed Nov 26 10:41:28 2008
New Revision: 27288

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27288
Log:
run_depends: support both regular dependencies and build-dependencies

Modified:
    trunk/dh-make-perl/dh-make-perl

Modified: trunk/dh-make-perl/dh-make-perl
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/dh-make-perl?rev=27288&op=diff
==============================================================================
--- trunk/dh-make-perl/dh-make-perl (original)
+++ trunk/dh-make-perl/dh-make-perl Wed Nov 26 10:41:28 2008
@@ -1007,7 +1007,7 @@
 }
 
 sub run_depends {
-    my ( $depends_module, $dir ) = @_;
+    my ( $depends_module, $dir, $build_deps ) = @_;
 
     no warnings;
     local *STDERR;
@@ -1017,7 +1017,11 @@
     $mod_dep->dist_dir($dir);
     $mod_dep->find_modules();
 
-    my %dep_hash = %{ $mod_dep->requires };
+    my %dep_hash = %{
+        $build_deps
+        ? $mod_dep->build_requires 
+        : $mod_dep->requires
+    };
 
     my $error = $mod_dep->error();
     die "Error: $error\n" if $error;




More information about the Pkg-perl-cvs-commits mailing list