[SCM] Debian packaging of dh-make-perl branch, master, updated. debian/0.75-1-28-g407bc33

Damyan Ivanov dmn at debian.org
Tue Sep 11 19:32:07 UTC 2012


The following commit has been merged in the master branch:
commit 407bc336ae75797d42c3ca615b922396a9298e7f
Author: Damyan Ivanov <dmn at debian.org>
Date:   Tue Sep 11 22:31:53 2012 +0300

    honour --arch option
    
    Use it if given and skip automatic scan for XS code.
    Closes: #668642

diff --git a/lib/DhMakePerl/Command/Packaging.pm b/lib/DhMakePerl/Command/Packaging.pm
index 9aa8c7d..0561f02 100644
--- a/lib/DhMakePerl/Command/Packaging.pm
+++ b/lib/DhMakePerl/Command/Packaging.pm
@@ -264,8 +264,14 @@ sub extract_basic {
     $src->Section('perl') unless defined $src->Section;
     $src->Priority('optional') unless defined $src->Priority;
 
-    $bin->Architecture('all');
-    find( sub { $self->check_for_xs }, $self->main_dir );
+    if ( $self->cfg->arch ) {
+        printf "Forcing architecture to '%s'\n", $self->cfg->arch;
+        $bin->Architecture( $self->cfg->arch );
+    }
+    else {
+        $bin->Architecture('all');
+        find( sub { $self->check_for_xs }, $self->main_dir );
+    }
 
     printf(
         "Found: %s %s (%s arch=%s)\n",

-- 
Debian packaging of dh-make-perl



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