[dh-make-perl] 01/03: is_core_perl_package: strip architecture before matching package name

Damyan Ivanov dmn at moszumanska.debian.org
Tue Mar 21 21:18:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to branch master
in repository dh-make-perl.

commit bba607c8afbccba902501ce578c2eb5b061d27ae
Author: Damyan Ivanov <dmn at debian.org>
Date:   Tue Mar 21 21:14:01 2017 +0000

    is_core_perl_package: strip architecture before matching package name
---
 lib/DhMakePerl/Utils.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/DhMakePerl/Utils.pm b/lib/DhMakePerl/Utils.pm
index 4691182..2759669 100644
--- a/lib/DhMakePerl/Utils.pm
+++ b/lib/DhMakePerl/Utils.pm
@@ -128,6 +128,8 @@ list.
 sub is_core_perl_package {
     my ($pkg) = @_;
 
+    $pkg =~ s/:\w+$//;  # strip architecture
+
     return 1
       if $pkg eq 'perl-base'
       or $pkg eq 'perl'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/dh-make-perl.git



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