[libconfig-model-dpkg-perl] 01/03: control model: allow user defined fields (Closes: #810023)
dod at debian.org
dod at debian.org
Thu Jan 7 18:13:58 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 488fa68096d4dc6137509ac3fee3bd5bf415960f
Author: Dominique Dumont <dod at debian.org>
Date: Thu Jan 7 19:06:07 2016 +0100
control model: allow user defined fields (Closes: #810023)
---
lib/Config/Model/models/Dpkg/Control/Binary.pl | 13 +++++++++++++
lib/Config/Model/models/Dpkg/Control/Source.pl | 13 +++++++++++++
2 files changed, 26 insertions(+)
diff --git a/lib/Config/Model/models/Dpkg/Control/Binary.pl b/lib/Config/Model/models/Dpkg/Control/Binary.pl
index 09c7505..314c4da 100644
--- a/lib/Config/Model/models/Dpkg/Control/Binary.pl
+++ b/lib/Config/Model/models/Dpkg/Control/Binary.pl
@@ -1,5 +1,18 @@
[
{
+ 'accept' => [
+ '.*',
+ {
+ 'description' => 'Additional user-defined fields
+
+Fields in the main source control information file with names starting X, followed by one or more of the letters BCS and a hyphen -, will be copied to the output files. Only the part of the field name after the hyphen will be used in the output file. Where the letter B is used the field will appear in binary package control files, where the letter S is used in Debian source control files and where C is used in upload control (.changes) files.
+
+For details, see L<section 5.7 of Debian policy|https://www.debian.org/doc/debian-policy/ch-controlfields.html>',
+ 'summary' => 'User defined field',
+ 'type' => 'leaf',
+ 'value_type' => 'string'
+ }
+ ],
'author' => [
'Dominique Dumont'
],
diff --git a/lib/Config/Model/models/Dpkg/Control/Source.pl b/lib/Config/Model/models/Dpkg/Control/Source.pl
index a522c5a..1fb2e03 100644
--- a/lib/Config/Model/models/Dpkg/Control/Source.pl
+++ b/lib/Config/Model/models/Dpkg/Control/Source.pl
@@ -1,5 +1,18 @@
[
{
+ 'accept' => [
+ '.*',
+ {
+ 'description' => 'Additional user-defined fields
+
+Fields in the main source control information file with names starting X, followed by one or more of the letters BCS and a hyphen -, will be copied to the output files. Only the part of the field name after the hyphen will be used in the output file. Where the letter B is used the field will appear in binary package control files, where the letter S is used in Debian source control files and where C is used in upload control (.changes) files.
+
+For details, see L<section 5.7 of Debian policy|https://www.debian.org/doc/debian-policy/ch-controlfields.html>',
+ 'summary' => 'User defined field',
+ 'type' => 'leaf',
+ 'value_type' => 'string'
+ }
+ ],
'author' => [
'Dominique Dumont'
],
--
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