[libconfig-model-dpkg-perl] 11/13: added comment field in copyright-scan-patterns
dod at debian.org
dod at debian.org
Sun Feb 7 17:16:17 UTC 2016
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 76eb5ef803067b16ef55e3154039edcf0d7bb93d
Author: Dominique Dumont <dod at debian.org>
Date: Sun Feb 7 16:17:56 2016 +0100
added comment field in copyright-scan-patterns
---
lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl | 6 ++++++
lib/Dpkg/Copyright/Scanner.pm | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl b/lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl
index 2492f33..a9851bc 100644
--- a/lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl
+++ b/lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl
@@ -23,6 +23,12 @@
'description' => 'skip the files like a file without any information.',
'type' => 'leaf',
'value_type' => 'boolean'
+ },
+ 'comment',
+ {
+ 'description' => 'This field is provided for bookkeeping and is not used by "cme update dpkg-copyright"',
+ 'type' => 'leaf',
+ 'value_type' => 'string'
}
],
'name' => 'Dpkg::Copyright::FillBlanks::Pattern'
diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index 82d1f50..b12dcc0 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -566,7 +566,7 @@ sub __load_fill_blank_data ($current_dir) {
foreach my $k (keys $fill_blanks{$path}->%*) {
die "Error in file $file: Unexpected key '$k' in path '$path'\n"
- unless $k =~/^(skip|license|(override-)?copyright)$/;
+ unless $k =~/^(comment|skip|license|(override-)?copyright)$/;
}
}
}
--
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