Changeset 59516 in vbox
- Timestamp:
- Jan 29, 2016 8:14:44 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/checksum/manifest.cpp
r57387 r59516 52 52 char *pszManifestDigest; 53 53 PRTMANIFESTTEST pTestPattern; 54 bool fSkipThisFile; 54 55 } RTMANIFESTFILEENTRY; 55 56 typedef RTMANIFESTFILEENTRY* PRTMANIFESTFILEENTRY; … … 348 349 /* Fill our compare list */ 349 350 for (size_t i = 0; i < cTests; ++i) 351 { 350 352 paFiles[i].pTestPattern = &paTests[i]; 353 paFiles[i].fSkipThisFile = false; 354 } 351 355 352 356 char *pcBuf = (char*)pvBuf; … … 468 472 break; 469 473 } 474 else 475 { 476 /* 477 * use case when manifest file doesn't contain the SHA digest of OVF description file 478 * OVF2.0 standard says that "The manifest file shall contain SHA digests for all distinct files 479 * referenced in the References element of the OVF descriptor and for no other files." 480 * So we have OVF description file in our package file list but there is no SHA digest for him. 481 */ 482 char *suffix = RTPathSuffix(paFiles[i].pTestPattern->pszTestFile);//get suffix 483 484 if (RTStrICmp(suffix, ".ovf") == 0) 485 { 486 paFiles[i].fSkipThisFile = true;//workaround for this case 487 fFound = true; 488 } 489 } 470 490 } 471 491 RTMemTmpFree(pszName); … … 488 508 for (size_t i = 0; i < cTests; ++i) 489 509 { 510 if(paFiles[i].fSkipThisFile == true) 511 continue; 490 512 /* If there is an entry in the file list, which hasn't an 491 513 * equivalent in the manifest file, its an error. */
Note:
See TracChangeset
for help on using the changeset viewer.