[libconfig-model-dpkg-perl] 06/06: fix unused license tests
dod at debian.org
dod at debian.org
Wed Aug 31 19:01:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch check-unused-licenses-live
in repository libconfig-model-dpkg-perl.
commit 54da9508d2f02ff3f1adabe32e175caaebd54e5f
Author: Dominique Dumont <dod at debian.org>
Date: Wed Aug 31 20:59:09 2016 +0200
fix unused license tests
deep_chek is no longer called after loading config file.
Lisense check is triggered only by apply_fix
deep_check without fix must now be explicitly called.
---
t/model_tests.d/dpkg-copyright-test-conf.pl | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/t/model_tests.d/dpkg-copyright-test-conf.pl b/t/model_tests.d/dpkg-copyright-test-conf.pl
index 5cf8118..08fdbd2 100644
--- a/t/model_tests.d/dpkg-copyright-test-conf.pl
+++ b/t/model_tests.d/dpkg-copyright-test-conf.pl
@@ -327,13 +327,15 @@ in ‘/usr/share/common-licenses/GPL-1’.",
},
{
name => 'unused-license',
- load_warnings => [ (qr/deprecated/) x 3 , qr/Unused global license/],
- apply_fix => 1,
-
+ load_warnings => [ (qr/deprecated/) x 3 ],
+ # the unused license
check_before_fix => {
'License:"MPL-1.1" text' => "[MPL-1.1 LICENSE TEXT]",
},
+ apply_fix => 1, # clean up unused license
+
+ # check that unused license was removed
has_not_key => [ 'License' => 'MPL-1.1' ],
check => {
'License:"GPL-2+" text' => "[GPL-2 LICENSE TEXT]",
--
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