IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28394


Ignore:
Timestamp:
Jun 17, 2010, 1:32:33 PM (16 years ago)
Author:
Paul Price
Message:

Merging fix to DataStore parsing required for MOPS' DataStore.

Location:
tags/ipp-20100616/DataStore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100616/DataStore

  • tags/ipp-20100616/DataStore/lib/DataStore/FileSet/Parser.pm

    r15024 r28394  
    100100
    101101    $p{base_uri} =~ qr|(.*?/)index.txt|;
    102     $self->{base_uri} = $1; 
     102    $self->{base_uri} = $1;
    103103
    104104    return $self;
     
    129129        {
    130130            type    => SCALAR,
    131             regex   => qr/\S+/, # string with at least 1 non WS char
    132131        }
    133132    );
     
    139138        next LINE if $line =~ /^\s*$/;
    140139
    141         # comment lines   
     140        # comment lines
    142141        next LINE if $line =~ /^\s*\#/;
    143142
     
    183182            carp "line $lineno: type $type unknown: $line";
    184183            next LINE;
    185         } 
     184        }
    186185
    187186        my @extra = @fields[3 .. $#fields] if $#fields >= 3;
     
    192191            datetime    => $datetime,
    193192            type        => $type,
    194             extra       => \@extra, 
     193            extra       => \@extra,
    195194            uri         => $self->base_uri . $fileset . '/index.txt',
    196195        });
  • tags/ipp-20100616/DataStore/lib/DataStore/Product/Parser.pm

    r15025 r28394  
    132132        {
    133133            type    => SCALAR,
    134             regex   => qr/\S+/, # string with at least 1 non WS char
    135134        }
    136135    );
     
    142141        next LINE if $line =~ /^\s*$/;
    143142
    144         # comment lines   
     143        # comment lines
    145144        next LINE if $line =~ /^\s*\#/;
    146145
     
    159158                next LINE;
    160159            }
    161        
     160
    162161            # strip leading and trailing whitespace
    163162            $field =~ s/^\s+//;
     
    184183            carp "line $lineno: type $type unknown: $line";
    185184            next LINE;
    186         } 
     185        }
    187186
    188187        # fifo
Note: See TracChangeset for help on using the changeset viewer.