r27466 - in /trunk/dh-make-perl/t: dists.t dists/Strange-0.1/wanted-debian/copyright dists/Strange-2.1/wanted-debian/copyright
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Sun Nov 30 13:06:16 UTC 2008
Author: dmn
Date: Sun Nov 30 13:06:14 2008
New Revision: 27466
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27466
Log:
dists.t: allow different year of copyright when checking debian/copyrught
Modified:
trunk/dh-make-perl/t/dists.t
trunk/dh-make-perl/t/dists/Strange-0.1/wanted-debian/copyright
trunk/dh-make-perl/t/dists/Strange-2.1/wanted-debian/copyright
Modified: trunk/dh-make-perl/t/dists.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/t/dists.t?rev=27466&op=diff
==============================================================================
--- trunk/dh-make-perl/t/dists.t (original)
+++ trunk/dh-make-perl/t/dists.t Sun Nov 30 13:06:14 2008
@@ -21,6 +21,21 @@
next if /^--- / or /^\+\+\+ /;
next unless /^[-+] /;
next if /^[-+] -- Joe Maintainer <joemaint\@test\.local> /;
+
+ $only_date_differs = 0;
+ diag $_;
+ last;
+ }
+
+ $diff = '' if $only_date_differs;
+ }
+
+ if ( $_ eq 'copyright' ) {
+ my $only_date_differs = 1;
+ for ( split( /\n/, $diff ) ) {
+ next if /^--- / or /^\+\+\+ /;
+ next unless /^[-+] /;
+ next if /^[-+] Copyright: \d+, Joe Maintainer <joemaint\@test\.local>/;
$only_date_differs = 0;
diag $_;
Modified: trunk/dh-make-perl/t/dists/Strange-0.1/wanted-debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/t/dists/Strange-0.1/wanted-debian/copyright?rev=27466&op=diff
==============================================================================
--- trunk/dh-make-perl/t/dists/Strange-0.1/wanted-debian/copyright (original)
+++ trunk/dh-make-perl/t/dists/Strange-0.1/wanted-debian/copyright Sun Nov 30 13:06:14 2008
@@ -15,7 +15,7 @@
License:
Files: debian/*
-Copyright: 2008, Joe Maintainer <joemaint at test.local>
+Copyright: 2007, Joe Maintainer <joemaint at test.local>
License: Artistic | GPL-1+
License: Artistic
Modified: trunk/dh-make-perl/t/dists/Strange-2.1/wanted-debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/t/dists/Strange-2.1/wanted-debian/copyright?rev=27466&op=diff
==============================================================================
--- trunk/dh-make-perl/t/dists/Strange-2.1/wanted-debian/copyright (original)
+++ trunk/dh-make-perl/t/dists/Strange-2.1/wanted-debian/copyright Sun Nov 30 13:06:14 2008
@@ -15,7 +15,7 @@
License:
Files: debian/*
-Copyright: 2008, Joe Maintainer <joemaint at test.local>
+Copyright: 2007, Joe Maintainer <joemaint at test.local>
License: Artistic | GPL-1+
License: Artistic
More information about the Pkg-perl-cvs-commits
mailing list