Author: kwilliams
Date: Sat Oct 20 08:50:55 2007
New Revision: 10099

Modified:
   Module-Build/trunk/Changes
   Module-Build/trunk/lib/Module/Build/Base.pm

Log:
Check prereqs before parsing $VERSION

Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes  (original)
+++ Module-Build/trunk/Changes  Sat Oct 20 08:50:55 2007
@@ -1,5 +1,11 @@
 Revision history for Perl extension Module::Build.
 
+ - When checking prerequisites, the required version of perl is now
+   checked before we start finding the $VERSION declaration of the
+   distribution, which results in much more intuitive error messages
+   e.g. if the author is using 5.6-isms in their declaration but the
+   user doesn't have 5.6. [Slaven Rezic]
+
  - Added 'artistic_2' license, corrected 'lgpl' license url (bug #29783)
    [David Thomas]
 

Modified: Module-Build/trunk/lib/Module/Build/Base.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Base.pm (original)
+++ Module-Build/trunk/lib/Module/Build/Base.pm Sat Oct 20 08:50:55 2007
@@ -29,13 +29,13 @@
   die "Too early to specify a build action '$self->{action}'.  Do 'Build 
$self->{action}' instead.\n"
     if $self->{action} && $self->{action} ne 'Build_PL';
 
-  $self->dist_name;
-  $self->dist_version;
-
   $self->check_manifest;
   $self->check_prereq;
   $self->check_autofeatures;
 
+  $self->dist_name;
+  $self->dist_version;
+
   $self->_set_install_paths;
   $self->_find_nested_builds;
 

Reply via email to