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 d65d129c97dad7e662b3261b15109c4267e87d67
Author: Dominique Dumont <d...@debian.org>
Date:   Sun Feb 7 16:13:51 2016 +0100

    cme edit dpkg: added scan-copyright-patterns
---
 lib/Config/Model/models/Dpkg.pl                    |  8 ++++++
 .../Model/models/Dpkg/Copyright/ScanPatterns.pl    | 29 ++++++++++++++++++++++
 .../models/Dpkg/Copyright/ScanPatterns/Lists.pl    | 27 ++++++++++++++++++++
 3 files changed, 64 insertions(+)

diff --git a/lib/Config/Model/models/Dpkg.pl b/lib/Config/Model/models/Dpkg.pl
index 4e71bf9..6ba6a5a 100644
--- a/lib/Config/Model/models/Dpkg.pl
+++ b/lib/Config/Model/models/Dpkg.pl
@@ -27,6 +27,14 @@
         'type' => 'leaf',
         'value_type' => 'string'
       },
+      'scan-copyright-patterns',
+      {
+        'config_class_name' => 'Dpkg::Copyright::ScanPatterns',
+        'description' => 'This parameter is used by "cme update 
dpkg-copyright". This command scans all source files to get copyright and 
license information. By default, the decision whether to scan a file or not is 
left to licensecheck. You can override this behavior using this parameter.
+
+See L<Dpkg::Copyright::Scanner/"electing or ignoring files to scan"> for more 
details.',
+        'type' => 'node'
+      },
       'copyright',
       {
         'config_class_name' => 'Dpkg::Copyright',
diff --git a/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns.pl 
b/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns.pl
new file mode 100644
index 0000000..ecf80a4
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns.pl
@@ -0,0 +1,29 @@
+[
+  {
+    'element' => [
+      'check',
+      {
+        'config_class_name' => 'Dpkg::Copyright::ScanPatterns::Lists',
+        'description' => 'Files matching any of these patterns will be scanned 
by L<licensecheck>. See L<Dpkg::Copyright::Scanner/"electing or ignoring files 
to scan">',
+        'type' => 'node'
+      },
+      'ignore',
+      {
+        'config_class_name' => 'Dpkg::Copyright::ScanPatterns::Lists',
+        'description' => 'Files matching any of these patterns will be ignored 
by L<licensecheck>. See L<Dpkg::Copyright::Scanner/"electing or ignoring files 
to scan">',
+        'type' => 'node'
+      }
+    ],
+    'name' => 'Dpkg::Copyright::ScanPatterns',
+    'read_config' => [
+      {
+        'auto_create' => '1',
+        'backend' => 'Yaml',
+        'config_dir' => 'debian',
+        'file' => 'copyright-scan-patterns.yml'
+      }
+    ]
+  }
+]
+;
+
diff --git a/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns/Lists.pl 
b/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns/Lists.pl
new file mode 100644
index 0000000..efdb0ad
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns/Lists.pl
@@ -0,0 +1,27 @@
+[
+  {
+    'element' => [
+      'suffixes',
+      {
+        'cargo' => {
+          'type' => 'leaf',
+          'value_type' => 'uniline'
+        },
+        'description' => 'Files matching any of these suffixes will be scanned 
by L<licensecheck>. Default suffixes of L<licensecheck> will also be sued. See 
L<Dpkg::Copyright::Scanner/"electing or ignoring files to scan">',
+        'type' => 'list'
+      },
+      'pattern',
+      {
+        'cargo' => {
+          'type' => 'leaf',
+          'value_type' => 'uniline'
+        },
+        'description' => 'Files matching any of these patterns will be scanned 
by L<licensecheck>. See L<Dpkg::Copyright::Scanner/"electing or ignoring files 
to scan">',
+        'type' => 'list'
+      }
+    ],
+    'name' => 'Dpkg::Copyright::ScanPatterns::Lists'
+  }
+]
+;
+

-- 
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