[dh-make-perl] 05/09: fix special handling of changed copyright years

Damyan Ivanov dmn at alioth.debian.org
Fri Aug 16 12:32:50 UTC 2013


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 c4a1888ad8e030d97d26e24ecf157907c83cbb6b
Author: Damyan Ivanov <dmn at debian.org>
Date:   Fri Aug 16 13:29:36 2013 +0200

    fix special handling of changed copyright years
---
 t/dists.t |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/t/dists.t b/t/dists.t
index fecf6b8..dabc6f3 100755
--- a/t/dists.t
+++ b/t/dists.t
@@ -47,7 +47,7 @@ sub compare_tree {
                         # different copyright years are normal
                         # (test written in 2002 and run in 2020
                         # after refreshing there can also be several years
-                        if ($hint eq 'email') {
+                        if ($hint =~ /email/) {
                             return 0
                              if $a
                                  =~ /^Copyright: (\d+, )+Florian Geekwurt <florian\@geekwurt\.org>$/
@@ -211,6 +211,8 @@ sub dist_ok($) {
             $dist
         ],
         dist_dir => $dist_dir,
+        # having 'email' in the comment enabled a specific
+        # comparison procedure in compare_tree()
         comment  => 'refresh email',
         compare  => {
             result => "$dist/debian",

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