perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Moyer <f...@redhotpenguin.com>
Subject Apache::Test version issues
Date Sat, 18 Apr 2009 09:18:15 GMT
Can someone explain to me why we need version here?  Is it for older
versions of perl?

http://rt.cpan.org/Public/Bug/Display.html?id=32992


#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-version.dpatch by  <mhershberger@intrahealth.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix up the version checking

@DPATCH@

diff -ub Apache-Test-1.30/Makefile.PL\~ Apache-Test-1.30/Makefile.PL
--- Apache-Test-1.30/Makefile.PL~       2007-11-14 01:44:36.000000000 -0500
+++ Apache-Test-1.30/Makefile.PL        2008-01-29 21:56:49.000000000 -0500
@@ -2,7 +2,7 @@

 use lib qw(lib);
 use Apache::Test5005compat;
-
+use version;
 use strict;
 use warnings;

@@ -147,7 +147,7 @@
     }
 }

-if (TOP_LEVEL && $ExtUtils::MakeMaker::VERSION < 6.06) {
+if (TOP_LEVEL && version->new($ExtUtils::MakeMaker::VERSION) < version->new(6.0
6)) {
     # now that we're using subversion, make sure that
     # .svn directories are skipped during the build process
     # for old versions of MakeMaker
@@ -223,3 +223,4 @@
         $string;
     };
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message