Changeset 6476
- Timestamp:
- Feb 23, 2006, 5:19:28 PM (20 years ago)
- Location:
- trunk/DataStore/lib/DataStore
- Files:
-
- 2 edited
-
File/Parser.pm (modified) (2 diffs)
-
FileSet/Parser.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/lib/DataStore/File/Parser.pm
r6475 r6476 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: Parser.pm,v 1. 1 2006-02-24 03:14:29jhoblitt Exp $3 # $Id: Parser.pm,v 1.2 2006-02-24 03:19:28 jhoblitt Exp $ 4 4 5 5 package DataStore::File::Parser; … … 95 95 96 96 # at least fileid, bytes, md5sum, and type fields are required 97 98 97 if (scalar @fields < 4) { 99 98 carp "line $lineno: not enough fields: $line"; 100 99 next LINE; 100 } 101 102 # fields are not allowed to contain # 103 foreach my $field (@fields) { 104 if ($field =~ /\#/) { 105 carp "line $lineno: field $field: contains #: $line"; 106 next LINE; 107 } 101 108 } 102 109 -
trunk/DataStore/lib/DataStore/FileSet/Parser.pm
r6474 r6476 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: Parser.pm,v 1. 2 2006-02-24 02:51:31jhoblitt Exp $3 # $Id: Parser.pm,v 1.3 2006-02-24 03:19:28 jhoblitt Exp $ 4 4 5 5 package DataStore::FileSet::Parser; … … 102 102 } 103 103 104 # fields are not allowed to contain # 105 foreach my $field (@fields) { 106 if ($field =~ /\#/) { 107 carp "line $lineno: field $field: contains #: $line"; 108 next LINE; 109 } 110 } 111 104 112 my ($fileset, $datetime, $type) = @fields; 105 113
Note:
See TracChangeset
for help on using the changeset viewer.
