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 55ec31db0d68edb8eea676aee76dc868d9508adb
Author: Dominique Dumont <d...@debian.org>
Date:   Sun Feb 7 16:15:19 2016 +0100

    cme edit dpkg: added fill-copyright-blanks
---
 lib/Config/Model/models/Dpkg.pl                    |  9 ++++++
 .../Model/models/Dpkg/Copyright/FillBlanks.pl      | 28 +++++++++++++++++++
 .../models/Dpkg/Copyright/FillBlanks/Pattern.pl    | 32 ++++++++++++++++++++++
 3 files changed, 69 insertions(+)

diff --git a/lib/Config/Model/models/Dpkg.pl b/lib/Config/Model/models/Dpkg.pl
index 6ba6a5a..decc19b 100644
--- a/lib/Config/Model/models/Dpkg.pl
+++ b/lib/Config/Model/models/Dpkg.pl
@@ -35,6 +35,15 @@
 See L<Dpkg::Copyright::Scanner/"electing or ignoring files to scan"> for more 
details.',
         'type' => 'node'
       },
+      'fill-copyright-blanks',
+      {
+        'config_class_name' => 'Dpkg::Copyright::FillBlanks',
+        'description' => 'This paramter is used by "cme update dpkg-copyright 
command".
+
+Sometimes, upstream coders are not perfect: some source files cannot be parsed 
correctly or some legal information is missing. A file without copyright and 
license information is skipped. On the other hand, a file with either copyright 
or license missing will be used. Unfortunately, this will prevent a correct 
grouping and merging of copyright entries. Instead of patching upstream source 
files to fill the blank, you can specify the missing information in a special 
file.',
+        'summary' => 'Provides missing copyright info for cme update',
+        'type' => 'node'
+      },
       'copyright',
       {
         'config_class_name' => 'Dpkg::Copyright',
diff --git a/lib/Config/Model/models/Dpkg/Copyright/FillBlanks.pl 
b/lib/Config/Model/models/Dpkg/Copyright/FillBlanks.pl
new file mode 100644
index 0000000..4724648
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg/Copyright/FillBlanks.pl
@@ -0,0 +1,28 @@
+[
+  {
+    'element' => [
+      'path',
+      {
+        'cargo' => {
+          'config_class_name' => 'Dpkg::Copyright::FillBlanks::Pattern',
+          'type' => 'node'
+        },
+        'description' => 'Patterns are matched from the beginning a path. I.e. 
C<share/websockify/> pattern will match C<share/websockify/foo.rb> but will not 
match C<web/share/websockify/foo.rb>. See L<Dpkg::Copyright::Scanner/"Filling 
the blanks"> for more details.',
+        'index_type' => 'string',
+        'summary' => 'Perl pattern to match file path',
+        'type' => 'hash'
+      }
+    ],
+    'name' => 'Dpkg::Copyright::FillBlanks',
+    'read_config' => [
+      {
+        'auto_create' => '1',
+        'backend' => 'Yaml',
+        'config_dir' => 'debian',
+        'file' => 'fill.copyright.blanks.yml'
+      }
+    ]
+  }
+]
+;
+
diff --git a/lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl 
b/lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl
new file mode 100644
index 0000000..2492f33
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg/Copyright/FillBlanks/Pattern.pl
@@ -0,0 +1,32 @@
+[
+  {
+    'element' => [
+      'copyright',
+      {
+        'type' => 'leaf',
+        'value_type' => 'string'
+      },
+      'override-copyright',
+      {
+        'description' => 'C<override-copyright> key is used to ignore the 
copyright information coming from the source and provide the correct 
information. Use this as last resort for instance when the encoding of the 
owner is not ascii or utf-8. Note that a warning will be shown each time a 
copyright is overridden.',
+        'type' => 'leaf',
+        'value_type' => 'string'
+      },
+      'license',
+      {
+        'description' => 'license keyword, either similar to the one provided 
by L<licensecheck> or license short name as required by Debian copyright 
specification.',
+        'type' => 'leaf',
+        'value_type' => 'uniline'
+      },
+      'skip',
+      {
+        'description' => 'skip the files like a file without any information.',
+        'type' => 'leaf',
+        'value_type' => 'boolean'
+      }
+    ],
+    'name' => 'Dpkg::Copyright::FillBlanks::Pattern'
+  }
+]
+;
+

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to