[libconfig-model-dpkg-perl] 07/07: do not set Upstream-Name for native package
dod at debian.org
dod at debian.org
Thu Jul 27 19:02:39 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 175b88429bc97804451d7caa9d15288ec0964acd
Author: Dominique Dumont <dod at debian.org>
Date: Fri Jul 21 20:26:33 2017 +0200
do not set Upstream-Name for native package
When cme dpkg is run, the default value of copyright Upstream-Name is
retrieved from control source name. This must not be done when the
package is native. We assume that a native package has not debian/watch
file. This may not be true for all non-native packages though.
---
lib/Config/Model/models/Dpkg.d/source-name/Dpkg/Copyright.pl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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
index d470768..4a5d30e 100644
--- a/lib/Config/Model/models/Dpkg.d/source-name/Dpkg/Copyright.pl
+++ b/lib/Config/Model/models/Dpkg.d/source-name/Dpkg/Copyright.pl
@@ -5,9 +5,11 @@
{
'compute' => {
'allow_override' => '1',
- 'formula' => '$source_name',
+ 'formula' => '$watch ? $source_name : undef;',
+ 'use_eval' => '1',
'variables' => {
- 'source_name' => '! control source Source'
+ 'source_name' => '! control source Source',
+ 'watch' => '! watch'
}
}
}
--
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