[Bps-public-commit] net-lighthouse branch, master, updated. 99df7ac39d36a2748874127f4d4027d32ae4c3d2

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Sep 11 12:24:43 EDT 2009


The branch, master has been updated
       via  99df7ac39d36a2748874127f4d4027d32ae4c3d2 (commit)
      from  b0153925ec5abc6367ceb29f76b834c3ef378f2e (commit)

Summary of changes:
 Makefile.PL |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 99df7ac39d36a2748874127f4d4027d32ae4c3d2
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Sep 12 00:24:39 2009 +0800

    tweak Makefile.PL so if people have both Moose and Mouse but Mouse is less than 0.28, then we requires 0.28 too

diff --git a/Makefile.PL b/Makefile.PL
index 4a89f7e..9b5322f 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -21,8 +21,8 @@ else {
     requires 'YAML' unless can_use( 'YAML::Syck' );
 }
 
-unless ( can_use('Moose') ) {
-    requires 'Mouse' => 0.28;
+if ( can_use('Mouse') && !can_use( 'Mouse', 0.28 ) || !can_use('Moose') ) {
+    requires Mouse => 0.28;
 }
 
 test_requires 'Test::More';

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list