[libconfig-model-dpkg-perl] 12/23: default © upstream name is found from control source...
dod at debian.org
dod at debian.org
Mon Feb 13 12:29:38 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 d7a472ab05b2acbca405d31c31d2597b2a1b1949
Author: Dominique Dumont <dod at 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
More information about the Pkg-perl-cvs-commits
mailing list