[libconfig-model-dpkg-perl] 05/05: test double copyright entry

dod at debian.org dod at debian.org
Sat Sep 7 15:34:49 UTC 2013


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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 8dca09b4ab72c11d9e8c12cfe77c5bef9f676390
Author: Dominique Dumont <dod at debian.org>
Date:   Sat Sep 7 17:34:38 2013 +0200

    test double copyright entry
---
 t/model_tests.d/dpkg-copyright-examples/double-copyright |   11 +++++++++++
 t/model_tests.d/dpkg-copyright-test-conf.pl              |   10 ++++++++++
 2 files changed, 21 insertions(+)

diff --git a/t/model_tests.d/dpkg-copyright-examples/double-copyright b/t/model_tests.d/dpkg-copyright-examples/double-copyright
new file mode 100644
index 0000000..1941f43
--- /dev/null
+++ b/t/model_tests.d/dpkg-copyright-examples/double-copyright
@@ -0,0 +1,11 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: http://some.where.com
+
+Files: *
+Copyright: (c) 2000-2001 Andrew Ho
+Copyright: (c) 2004 David Coppit
+ The original code (written before April 20, 2001) was written [...]
+License: MPL-1.1
+
+License: MPL-1.1
+ [MPL-1.1 LICENSE TEXT]
diff --git a/t/model_tests.d/dpkg-copyright-test-conf.pl b/t/model_tests.d/dpkg-copyright-test-conf.pl
index f762aad..423b889 100644
--- a/t/model_tests.d/dpkg-copyright-test-conf.pl
+++ b/t/model_tests.d/dpkg-copyright-test-conf.pl
@@ -225,6 +225,16 @@ in ‘/usr/share/common-licenses/GPL-1’.",
             'debian/copyright' =>  [ qr/Copyright:\s+\n/ , qr/\n\n$/, qr/Copyright:\s*\nLicense/ ],
         }
     },
+    {
+        # Debian bug #721670
+        name => 'double-copyright' ,
+
+        check => {
+            'Files:"*" Copyright' => "(c) 2000-2001 Andrew Ho\n"
+            . "(c) 2004 David Coppit\n"
+            . "The original code (written before April 20, 2001) was written [...]",
+        },
+    },
 );
 
 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



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