[dh-make-perl] 01/03: Use Dpkg::Source::Package's get_default_diff_ignore_regex() function

gregor herrmann gregoa at debian.org
Sun Aug 14 03:11:50 UTC 2016


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

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

commit 491c2e45dd25de42dd1969290fbd9dd785416b40
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Aug 14 05:09:05 2016 +0200

    Use Dpkg::Source::Package's get_default_diff_ignore_regex() function
    
    instead of the deprecated $diff_ignore_default_regexp string.
    
    Thanks: Guillem Jover for the bug report.
    Closes: #834199
---
 Build.PL                 | 2 +-
 debian/control           | 2 +-
 lib/DhMakePerl/Config.pm | 5 ++++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Build.PL b/Build.PL
index 58796be..5ceb616 100644
--- a/Build.PL
+++ b/Build.PL
@@ -24,7 +24,7 @@ my $builder = My::Builder->new(
         'CPAN::Meta'                => 0,
         'Cwd'                       => 0,
         'Dpkg'                      => 0,
-        'Dpkg::Source::Package'     => 0,
+        'Dpkg::Source::Package'     => '1.01',
         'Email::Address'            => 0,
         'Email::Date::Format'       => 0,
         'File::Basename'            => 0,
diff --git a/debian/control b/debian/control
index 2f748b6..a1a29aa 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,7 @@ Build-Depends-Indep: libapt-pkg-perl,
                      libarray-unique-perl,
                      libclass-accessor-perl,
                      libconfig-ini-perl,
-                     libdpkg-perl,
+                     libdpkg-perl (>= 1.17.2),
                      libemail-address-perl,
                      libemail-date-format-perl,
                      libfile-dircompare-perl,
diff --git a/lib/DhMakePerl/Config.pm b/lib/DhMakePerl/Config.pm
index 91fae73..b296f47 100644
--- a/lib/DhMakePerl/Config.pm
+++ b/lib/DhMakePerl/Config.pm
@@ -71,7 +71,7 @@ use constant DEFAULTS => {
     dh            => 9,
     dist          => '',
     email         => '',
-    exclude       => qr/$Dpkg::Source::Package::diff_ignore_default_regexp/,
+    exclude       => Dpkg::Source::Package->get_default_diff_ignore_regex(),
     home_dir      => "$ENV{HOME}/.dh-make-perl",
     network       => 1,
     only          => {
@@ -85,6 +85,9 @@ use constant DEFAULTS => {
     verbose       => 1,
 };
 
+my $e = DEFAULTS->{'exclude'};
+DEFAULTS->{'exclude'} = qr/$e/;
+
 use constant cpan2deb_DEFAULTS => {
     build   => 1,
 

-- 
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