Changeset 28394
- Timestamp:
- Jun 17, 2010, 1:32:33 PM (16 years ago)
- Location:
- tags/ipp-20100616/DataStore
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
lib/DataStore/FileSet/Parser.pm (modified) (5 diffs)
-
lib/DataStore/Product/Parser.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20100616/DataStore
- Property svn:mergeinfo set to
-
tags/ipp-20100616/DataStore/lib/DataStore/FileSet/Parser.pm
r15024 r28394 100 100 101 101 $p{base_uri} =~ qr|(.*?/)index.txt|; 102 $self->{base_uri} = $1; 102 $self->{base_uri} = $1; 103 103 104 104 return $self; … … 129 129 { 130 130 type => SCALAR, 131 regex => qr/\S+/, # string with at least 1 non WS char132 131 } 133 132 ); … … 139 138 next LINE if $line =~ /^\s*$/; 140 139 141 # comment lines 140 # comment lines 142 141 next LINE if $line =~ /^\s*\#/; 143 142 … … 183 182 carp "line $lineno: type $type unknown: $line"; 184 183 next LINE; 185 } 184 } 186 185 187 186 my @extra = @fields[3 .. $#fields] if $#fields >= 3; … … 192 191 datetime => $datetime, 193 192 type => $type, 194 extra => \@extra, 193 extra => \@extra, 195 194 uri => $self->base_uri . $fileset . '/index.txt', 196 195 }); -
tags/ipp-20100616/DataStore/lib/DataStore/Product/Parser.pm
r15025 r28394 132 132 { 133 133 type => SCALAR, 134 regex => qr/\S+/, # string with at least 1 non WS char135 134 } 136 135 ); … … 142 141 next LINE if $line =~ /^\s*$/; 143 142 144 # comment lines 143 # comment lines 145 144 next LINE if $line =~ /^\s*\#/; 146 145 … … 159 158 next LINE; 160 159 } 161 160 162 161 # strip leading and trailing whitespace 163 162 $field =~ s/^\s+//; … … 184 183 carp "line $lineno: type $type unknown: $line"; 185 184 next LINE; 186 } 185 } 187 186 188 187 # fifo
Note:
See TracChangeset
for help on using the changeset viewer.
