This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7155d3f97d49149b739d0e8e6358122fa5b5e84b commit 7155d3f97d49149b739d0e8e6358122fa5b5e84b Author: Guillem Jover <guil...@debian.org> AuthorDate: Fri Sep 28 01:50:00 2018 +0200 build: Add a release_status key to the CPAN metadata This will enable the -TRIAL versioning that CPAN uses to avoid indexing such releases. --- cpan.am | 5 ++++- debian/changelog | 1 + scripts/Build.PL.in | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpan.am b/cpan.am index 4be971f5c..7c30f1f3f 100644 --- a/cpan.am +++ b/cpan.am @@ -1,6 +1,9 @@ CPAN_DIST_NAME = $(PACKAGE_CPAN_NAME) CPAN_DIST_VERSION = $(PACKAGE_VERSION) -CPAN_DIST = $(CPAN_DIST_NAME)-$(CPAN_DIST_VERSION) +if !PACKAGE_DIST_IS_RELEASE +CPAN_DIST_SUFFIX = -TRIAL +endif +CPAN_DIST = $(CPAN_DIST_NAME)-$(CPAN_DIST_VERSION)$(CPAN_DIST_SUFFIX) CPAN_DIST_ARCHIVE = $(CPAN_DIST).tar.gz dist-cpan: diff --git a/debian/changelog b/debian/changelog index a01776335..d9c0f4ce0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,7 @@ dpkg (1.19.2) UNRELEASED; urgency=medium - Distribute a LICENSE file on CPAN. - Do not make the Build.PL script executable. - Generalize PACKAGE_CPAN_SIGN by setting PACKAGE_DIST_IS_RELEASE instead. + - Add a release_status key to the CPAN metadata. [ Updated programs translations ] * Polish (Ćukasz Dulny). diff --git a/scripts/Build.PL.in b/scripts/Build.PL.in index b720d23ab..66d8b4a2b 100644 --- a/scripts/Build.PL.in +++ b/scripts/Build.PL.in @@ -62,6 +62,8 @@ my $build = $class->new( dist_author => '@PACKAGE_COPYRIGHT_HOLDER@ <@PACKAGE_BUGREPORT@>', license => 'GPL_2', + release_status => @PACKAGE_DIST_IS_RELEASE@ ? 'stable' : 'testing', + # Set only to avoid warnings. module_name => '@PACKAGE_CPAN_NAME@', -- Dpkg.Org's dpkg