Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Feb 20, 2025
1 parent 9f7dadd commit 33d9a1c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3354,7 +3354,7 @@ def AppendFileHeaderWithContent(fp, filevalues=[], extradata=[], jsondata={}, fi
if(len(filecontent) == 0):
checksumlist = [checksumtype[0], "none"]
else:
checksumlist = checksumtype
checksumlist = [checksumtype[0], checksumtype[1]]
outfileoutstr = outfileoutstr + \
AppendNullBytes(checksumlist, formatspecs['format_delimiter'])
nullstrecd = formatspecs['format_delimiter'].encode('UTF-8')
Expand Down Expand Up @@ -7280,18 +7280,18 @@ def CatFileValidate(infile, fmttype="auto", formatspecs=__file_format_multi_dict
valid_archive = False
invalid_archive = True
if(outfjsonsize > 0):
if(outfcs == infcs):
if(outfjsonchecksum == injsonfcs):
if(verbose):
VerbosePrintOut(
"File JSON Data Checksum Passed at offset " + str(outfjstart))
VerbosePrintOut("'" + outfcs + "' == " +
"'" + infcs + "'")
VerbosePrintOut("'" + outfjsonchecksum + "' == " +
"'" + injsonfcs + "'")
else:
if(verbose):
VerbosePrintOut(
"File JSON Data Checksum Error at offset " + str(outfjstart))
VerbosePrintOut("'" + outfcs + "' != " +
"'" + infcs + "'")
VerbosePrintOut("'" + outfjsonchecksum + "' != " +
"'" + injsonfcs + "'")
valid_archive = False
invalid_archive = True
outfcontentstart = fp.tell()
Expand Down

0 comments on commit 33d9a1c

Please sign in to comment.