Changeset 9001


Ignore:
Timestamp:
11/01/09 18:40:41 (2 years ago)
Author:
szabgab
Message:

fix #646, Test::NoWarnings? hiding missing prerequisites

Location:
trunk/Padre
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/Changes

    r8989 r9001  
    22 
    330.49 to be released 
    4     - Fixed #691: Extect subroutine does not work for a script without 
     4    - Fixed #691: Extract subroutine does not work for a script without 
    55      subroutines (WAXHEAD) 
    66    - Bugfix: The split-beginner-error check got false positives (SEWI) 
     
    3030      document types (SEWI) 
    3131    - Modules/Plugins could now add their panels to the global preferences (SEWI) 
     32    - Workaround for Test::NoWarnings hiding issue which lead to missing 
     33      prerequisites or upgrades (#646 SZABGAB) 
    3234 
    33350.48 2009.10.12 
  • trunk/Padre/Makefile.PL

    r8858 r9001  
    99use POSIX qw(locale_h); 
    1010 
     11# workaround for the fact that Module::Install loads the modules 
     12# into memory and when Test::NoWarnings is loaded it will hide 
     13# the warnings generated from that point. 
     14# removed in r2208, added again in 
     15eval  { 
     16        require Test::NoWarnings; 
     17        $SIG{__WARN__} = 'DEFAULT'; 
     18}; 
     19 
    1120BEGIN { 
    1221    if ( author_context and not eval("use Locale::Msgfmt 0.14; 1;") ) { 
     
    1524} 
    1625 
     26 
    1727# Configure-time dependencies MUST be done first 
    1828configure_requires 'ExtUtils::MakeMaker' => '6.52'; 
    1929 
     30# the above line does not seem to force an upgrade 
     31# the below code might work but not tested 
     32#eval "use ExtUtils::MakeMaker ()"; # avoid importing prompt() and other subs 
     33#if ($@) { 
     34#   print STDERR "Warning: prerequisite ExtUtils::MakeMaker 6.52 not found.\n"; 
     35#   exit 0; 
     36#} elsif ($ExtUtils::MakeMaker::VERSION <= 6.52) { 
     37#   print STDERR "Warning: prerequisite ExtUtils::MakeMaker 6.52 not found. We have $ExtUtils::MakeMaker::VERSION.\n"; 
     38#   exit 0; 
     39#} 
    2040 
    2141 
Note: See TracChangeset for help on using the changeset viewer.