[libconfig-model-dpkg-perl] 11/13: test for replacement or removal of copyright dir entries during update

dod at debian.org dod at debian.org
Wed May 20 16:58:50 UTC 2015


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 26a121ca79847c1cf914970908e6e7e8196b3090
Author: Dominique Dumont <dod at debian.org>
Date:   Wed May 20 18:43:25 2015 +0200

    test for replacement or removal of copyright dir entries during update
---
 .../pan-copyright-upgrade-update-more/debian/copyright              | 4 ++++
 t/model_tests.d/dpkg-test-conf.pl                                   | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/copyright b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/copyright
index 7790975..6abbcb0 100644
--- a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/copyright
+++ b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/copyright
@@ -18,6 +18,10 @@ Files: pan/*
 Copyright: 2002-2007, Charles Kerr <charles at rebelbase.com>
 License: GPL-2
 
+Files: pan/data/*
+Copyright: 2011, ShouldBeGone
+License: GPL-2
+
 Files: pan/data/cert-store.cc
 Copyright: 2011, Heinrich Müller <henmull at src.gnome.org>
   2002-2005, Charles Kerr <charles at rebelbase.com>
diff --git a/t/model_tests.d/dpkg-test-conf.pl b/t/model_tests.d/dpkg-test-conf.pl
index c0dfd7e..7f4f50f 100644
--- a/t/model_tests.d/dpkg-test-conf.pl
+++ b/t/model_tests.d/dpkg-test-conf.pl
@@ -109,6 +109,12 @@ my $del_home = sub {
             'copyright Files:pan/general/sorted-vector.h License short_name' => 'public-domain',
             qq'copyright Files:"uulib/*" Copyright' => '1994-2001, Frank Pilhofer.',
         },
+        has_key => {
+            'copyright Files' => ['*','uulib/*'],
+        },
+        has_not_key => {
+            'copyright Files' => 'pan/data/*',
+        },
         wr_check => {
             "copyright License:GPL-2 text" => {value => undef, mode => 'custom'},
             "copyright License:GPL-2 text" => qr/GNU/,

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