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 d7a472ab05b2acbca405d31c31d2597b2a1b1949
Author: Dominique Dumont <d...@debian.org>
Date:   Sat Jan 28 11:59:58 2017 +0100

    default © upstream name is found from control source...
    
    only when using 'cme dpkg'. This does not work with 'cme edit
    dpkg-copyright' as control source information is not loaded.
    
    This works with the new model plugin brought by
    
https://github.com/dod38fr/config-model/commit/fa9a5662058b950dc834236b7a9988281a2620bd
    and requires Config::Model >= 2.098
---
 .../Model/models/Dpkg.d/source-name/Dpkg/Copyright.pl | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/lib/Config/Model/models/Dpkg.d/source-name/Dpkg/Copyright.pl 
b/lib/Config/Model/models/Dpkg.d/source-name/Dpkg/Copyright.pl
new file mode 100644
index 0000000..d470768
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg.d/source-name/Dpkg/Copyright.pl
@@ -0,0 +1,19 @@
+[
+  {
+    'element' => [
+      'Upstream-Name',
+      {
+        'compute' => {
+          'allow_override' => '1',
+          'formula' => '$source_name',
+          'variables' => {
+            'source_name' => '! control source Source'
+          }
+        }
+      }
+    ],
+    'name' => 'Dpkg::Copyright'
+  }
+]
+;
+

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