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

commit ee2e18800f5fe0c63df39202586f38e28c00e860
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Jul 28 03:13:05 2018 +0200

    perl: Make Build.PL check Module::Build availability at run-time
    
    Doing a normal import via use, means that we need the module to be
    present for the unit tests, when we only need it as part of the
    distribution process.
---
 scripts/Build.PL.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/Build.PL.in b/scripts/Build.PL.in
index 40de90e41..2f81260bd 100644
--- a/scripts/Build.PL.in
+++ b/scripts/Build.PL.in
@@ -3,7 +3,11 @@
 use strict;
 use warnings;
 
-use Module::Build ();
+eval {
+    require Module::Build;
+} or do {
+    die "error: Missing Module::Build module, cannot proceed.\n";
+};
 
 if (-e 'Build.PL.in') {
     die "error: This is an in-tree build, not a proper perl distribution.\n" .

-- 
Dpkg.Org's dpkg

Reply via email to