Changeset 117


Ignore:
Timestamp:
12/12/05 20:46:29 (19 years ago)
Author:
thauvin
Message:
  • update checkconfig for regexp
Location:
trunk/soft/ObsData
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/MANIFEST

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r110 r117  
    1414testdata/coin.tar.gz 
    1515testdata/obsdata-conftest 
     16testdata/obsdata-wrongconf 
    1617testdata/ohp/ozone34.gz 
    1718testdata/ohp/ozone12.gz 
     
    1920t/O-01.t 
    2021t/O-02.t 
     22t/O-03.t 
    2123t/OA-01.t 
    2224t/OA-02.t 
  • trunk/soft/ObsData/ObsData.pm

    • Property cvs2svn:cvs-rev changed from 1.35 to 1.36
    r105 r117  
    147147        foreach my $param ($self->{config}->Parameters($obs)) { 
    148148        } 
     149        foreach my $datatype ($self->list_datatype) { 
     150            my $regexp = $self->getvalue($datatype, 'match') or next; # next ? are we sure ? 
     151            eval { qr/$regexp/ }; # Many thanks Rafael 
     152            if ($@) { 
     153                $self->loging(4, "error in regexp: '%s': %s", 
     154                    $regexp, 
     155                    $@, 
     156                ); 
     157                # TODO set this reg unavalable 
     158            } 
     159        } 
    149160    } 
    150161} 
Note: See TracChangeset for help on using the changeset viewer.