Changeset 35231


Ignore:
Timestamp:
2021-07-26T16:46:44+12:00 (3 years ago)
Author:
kjdon
Message:

Another field (ex.File.FileCreateDate) that needs to be ignored when diffing model colls and test colls for diffcol. Tested these changes out just now and now the Windows diffcol went through.

Location:
other-projects/nightly-tasks/diffcol/trunk/diffcol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/diffcol/diffcol.pl

    r34954 r35231  
    641641    {
    642642        # allow for a namespace prefix to <Metadata> as happens in GreenstoneMETS docmets.xml files, e.g. <gsdl3:Metadata></gsdl3:Metadata>
    643         my $ignore_line_re = "<(.*?:)?Metadata name=\"(lastmodified|lastmodifieddate|oailastmodified|oailastmodifieddate|ex.File.FileModifyDate|ex.File.FilePermissions|ex.File.FileAccessDate|ex.File.FileInodeChangeDate|ImageSize|FileSize|ex.Composite.LightValue)\">.*</(.*?:)?Metadata>\\s*\\n*";
     643        my $ignore_line_re = "<(.*?:)?Metadata name=\"(lastmodified|lastmodifieddate|oailastmodified|oailastmodifieddate|ex.File.FileModifyDate|ex.File.FilePermissions|ex.File.FileAccessDate|ex.File.FileInodeChangeDate|ex.File.FileCreateDate|ImageSize|FileSize|ex.Composite.LightValue)\">.*</(.*?:)?Metadata>\\s*\\n*";
    644644       
    645645        my $strResult;
  • other-projects/nightly-tasks/diffcol/trunk/diffcol/gdbdiff.pm

    r34955 r35231  
    9797    # The total_numbytes field can vary depending on how many backslashes exist in the urls in the main body text, as each
    9898    # of these windows slashes get escaped with another backslash, and the resulting string is used as key into rel link db
    99     my $ignore_line_re = "\n<(FileSize|lastmodified|lastmodifieddate|oailastmodified|oailastmodifieddate|ex.File.FileModifyDate|ex.File.FilePermissions|ex.File.FileAccessDate|ex.File.FileInodeChangeDate|total_numbytes|ex.Composite.LightValue)>([^\n])*";
     99    my $ignore_line_re = "\n<(FileSize|lastmodified|lastmodifieddate|oailastmodified|oailastmodifieddate|ex.File.FileModifyDate|ex.File.FilePermissions|ex.File.FileAccessDate|ex.File.FileInodeChangeDate|ex.File.FileCreateDate|total_numbytes|ex.Composite.LightValue)>([^\n])*";
    100100    $model_text =~ s/$ignore_line_re//g;
    101101    $test_text =~ s/$ignore_line_re//g;
Note: See TracChangeset for help on using the changeset viewer.