This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libmodule-corelist-perl.

commit 09bbd0fa504a3c0699fbf6b85bdd1d5528a0bb33
Author: gregor herrmann <gre...@debian.org>
Date:   Thu Nov 3 20:19:09 2016 +0100

    debian/rules: make the build fail when the current Perl is not supported.
---
 debian/rules | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..a218156 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,13 @@
 #!/usr/bin/make -f
 
+CURRENT_PERL := $(shell perl -e 'print $$]')
+
 %:
        dh $@
+
+override_dh_auto_build:
+       dh_auto_build
+
+       # safeguard against a Module::CoreList version which doesn't know about 
the current Perl
+       @echo Checking support for Perl $(CURRENT_PERL)
+       @perl -Iblib/lib -MModule::CoreList -E 
'$$date=$$Module::CoreList::released{"$(CURRENT_PERL)"} or say "Perl 
$(CURRENT_PERL) not supported by version $$Module::CoreList::VERSION of 
Module::CoreList"; exit !$$date;'

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libmodule-corelist-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