[libconfig-model-dpkg-perl] 01/08: add support for bugfiles (Closes: #692131)
dod at debian.org
dod at debian.org
Sat May 13 16:37:07 UTC 2017
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 a8cef8b977a9e4471ddd75e228cc26579d8bc4b6
Author: Dominique Dumont <dod at debian.org>
Date: Sat Apr 29 19:50:54 2017 +0200
add support for bugfiles (Closes: #692131)
---
lib/Config/Model/models/Dpkg.pl | 10 ++++
lib/Config/Model/models/Dpkg/BugFiles.pl | 36 ++++++++++++
lib/Config/Model/models/Dpkg/BugFiles/Control.pl | 74 ++++++++++++++++++++++++
3 files changed, 120 insertions(+)
diff --git a/lib/Config/Model/models/Dpkg.pl b/lib/Config/Model/models/Dpkg.pl
index 74afdc4..75825c6 100644
--- a/lib/Config/Model/models/Dpkg.pl
+++ b/lib/Config/Model/models/Dpkg.pl
@@ -158,6 +158,16 @@ Please keep in mind that dh_install will not expand wildcards in this file.
'summary' => 'list of files to clean',
'type' => 'list'
},
+ 'bugfiles',
+ {
+ 'cargo' => {
+ 'config_class_name' => 'Dpkg::BugFiles',
+ 'type' => 'node'
+ },
+ 'follow_keys_from' => '- control binary',
+ 'index_type' => 'string',
+ 'type' => 'hash'
+ },
'package-scripts',
{
'cargo' => {
diff --git a/lib/Config/Model/models/Dpkg/BugFiles.pl b/lib/Config/Model/models/Dpkg/BugFiles.pl
new file mode 100644
index 0000000..a5922e2
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg/BugFiles.pl
@@ -0,0 +1,36 @@
+[
+ {
+ 'element' => [
+ 'bug-control',
+ {
+ 'config_class_name' => 'Dpkg::BugFiles::Control',
+ 'description' => 'contains some directions for the bug reporting tool. See L<dh_bugfiles(1)|https://manpages.debian.org/jessie/debhelper/dh_bugfiles.1> man page.',
+ 'type' => 'node'
+ },
+ 'bug-script',
+ {
+ 'description' => 'script to be run by the bug reporting program for generating a bug report template. See L<dh_bugfiles(1)|https://manpages.debian.org/jessie/debhelper/dh_bugfiles.1> man page.',
+ 'type' => 'leaf',
+ 'value_type' => 'string'
+ },
+ 'bug-presubj',
+ {
+ 'description' => 'The contents of this file are displayed to the user by the bug reporting tool before allowing the user to write a bug report on the package to the Debian Bug Tracking System. See L<dh_bugfiles(1)|https://manpages.debian.org/jessie/debhelper/dh_bugfiles.1> man page.',
+ 'type' => 'leaf',
+ 'value_type' => 'string'
+ }
+ ],
+ 'name' => 'Dpkg::BugFiles',
+ 'read_config' => [
+ {
+ 'auto_create' => '1',
+ 'auto_delete' => '1',
+ 'backend' => 'PlainFile',
+ 'config_dir' => 'debian',
+ 'file' => '&index(-).&element'
+ }
+ ]
+ }
+]
+;
+
diff --git a/lib/Config/Model/models/Dpkg/BugFiles/Control.pl b/lib/Config/Model/models/Dpkg/BugFiles/Control.pl
new file mode 100644
index 0000000..9264307
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg/BugFiles/Control.pl
@@ -0,0 +1,74 @@
+[
+ {
+ 'element' => [
+ 'report-with',
+ {
+ 'description' => 'Often programs are distributed across several different packages, for
+example an upstream package \'foo\' may be packaged in Debian as foo, libfoo,
+foo-common and foo-data. In such cases it can be useful to include related
+package information in bugreports, to minimise the need for \'moreinfo\' requests
+to the submitter :) This is done by adding a "report-with" header to the
+control file::
+
+ report-with: foo libfoo foo-common foo-data
+
+Package information will be added to the bug report for each extra package
+listed.
+
+See L<README.developers|https://anonscm.debian.org/cgit/reportbug/reportbug.git/tree/doc/README.developers> for details.',
+ 'type' => 'leaf',
+ 'value_type' => 'uniline'
+ },
+ 'package-status',
+ {
+ 'description' => 'request that the status information for other packages
+(that are not dependencies or recommendations) be included with the
+report.
+
+See L<README.developers|https://anonscm.debian.org/cgit/reportbug/reportbug.git/tree/doc/README.developers> for details.',
+ 'type' => 'leaf',
+ 'value_type' => 'uniline'
+ },
+ 'Submit-As',
+ {
+ 'description' => 'The package maintainer can control to which packages bug reports are
+submitted, by setting the Package: field of the bug report. This will
+be mainly used to redirect bugs in packages coming from a single
+source to where the maintainer likes to have them. See L<README.developers|https://anonscm.debian.org/cgit/reportbug/reportbug.git/tree/doc/README.developers> for details.',
+ 'type' => 'leaf',
+ 'value_type' => 'uniline'
+ },
+ 'Send-To',
+ {
+ 'description' => 'Packages not distributed by Debian can take advantage of reportbug utility too with this parameter. For instance:
+
+ Send-To: bugs.myproject.com
+
+``reportbug`` will add ``submit@` ``quiet@`` or ``maintonly@`` to form the address the
+bug report mail is send to.
+
+(Note: you probably should use dpkg\'s support for Origin and Bugs tags
+in lieu of this support.)
+
+See L<README.developers|https://anonscm.debian.org/cgit/reportbug/reportbug.git/tree/doc/README.developers> for details.
+',
+ 'type' => 'leaf',
+ 'value_type' => 'uniline'
+ }
+ ],
+ 'name' => 'Dpkg::BugFiles::Control',
+ 'read_config' => [
+ {
+ 'assign_char' => ':',
+ 'assign_with' => ': ',
+ 'auto_create' => '1',
+ 'auto_delete' => '1',
+ 'backend' => 'IniFile',
+ 'config_dir' => 'debian',
+ 'file' => '&index(-).bug-control'
+ }
+ ]
+ }
+]
+;
+
--
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