[Apache-dispatch-devel] SF.net SVN: apache-dispatch:[85] trunk
Brought to you by:
geoffrey_young,
phred_moyer
|
From: <phr...@us...> - 2010-02-09 07:11:54
|
Revision: 85
http://apache-dispatch.svn.sourceforge.net/apache-dispatch/?rev=85&view=rev
Author: phred_moyer
Date: 2010-02-09 07:11:48 +0000 (Tue, 09 Feb 2010)
Log Message:
-----------
Set the exit code to 255 on bootstrap dep failures to make cpantesters happy.
Modified Paths:
--------------
trunk/Changes
trunk/Makefile.PL
trunk/lib/Apache/Dispatch/Util.pm
Modified: trunk/Changes
===================================================================
--- trunk/Changes 2010-02-06 21:18:41 UTC (rev 84)
+++ trunk/Changes 2010-02-09 07:11:48 UTC (rev 85)
@@ -1,5 +1,8 @@
Revision history for Perl extension Apache::Dispatch
+0.14 02.08.2010 23:09 PST
+ - set the exit code to 255 if Apache::Bootstrap dependencies missing
+
0.13 02.06.2010 13:08 PST
- require Apache::Bootstrap 0.07 to install on mp1/mp2 properly
- fix some of the Makefile.PL logic so that mp2 is checked first
Modified: trunk/Makefile.PL
===================================================================
--- trunk/Makefile.PL 2010-02-06 21:18:41 UTC (rev 84)
+++ trunk/Makefile.PL 2010-02-09 07:11:48 UTC (rev 85)
@@ -9,12 +9,13 @@
# minimum version of A::B required
my $ab = 0.07;
eval { require Apache::Bootstrap };
+do { $! = 255; die "Please install Apache::Bootstrap $ab"; } if $@;
-die "Please install Apache::Bootstrap $ab" if $@;
+if ($Apache::Bootstrap::VERSION < $ab) {
+ $! = 255;
+ die "Apache::Bootstrap $ab required, found " . $Apache::Bootstrap::VERSION;
+}
-die "Apache::Bootstrap $ab required, found " . $Apache::Bootstrap::VERSION
- if ($Apache::Bootstrap::VERSION < $ab);
-
# make sure we have at least one minimum version of mod_perl
my $bs = eval { Apache::Bootstrap->new({ mod_perl2 => 1.99022,
mod_perl => 1.30 }) };
Modified: trunk/lib/Apache/Dispatch/Util.pm
===================================================================
--- trunk/lib/Apache/Dispatch/Util.pm 2010-02-06 21:18:41 UTC (rev 84)
+++ trunk/lib/Apache/Dispatch/Util.pm 2010-02-09 07:11:48 UTC (rev 85)
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
=head1 NAME
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|