Skip to content

Commit

Permalink
Not depending on presence of "text/xml" files to make call to analyze…
Browse files Browse the repository at this point in the history
…ApplicationCompositions

- in case implementation of analyzeApplicationCompositions won't depend on mime type in the future
  • Loading branch information
fschleich committed Sep 27, 2024
1 parent b83d30f commit bc771cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/com/netflix/imflibrary/app/IMPAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,11 @@ public static Map<String, List<ErrorLogger.ErrorObject>> analyzePackage(File roo
if( xmlFileCount == 0) {
packingListErrorLogger.addError(IMFErrorLogger.IMFErrors.ErrorCodes.IMF_PKL_ERROR,
IMFErrorLogger.IMFErrors.ErrorLevels.WARNING, String.format("Packing List does not contain any assets of type \"%s\", Photon therefore won't attempt to parse CPL/OPL files.", PackingList.Asset.TEXT_XML_TYPE));
} else {
List<ApplicationComposition> applicationCompositionList = analyzeApplicationCompositions( rootFile, assetMap, packingList, headerPartitionPayloadRecords, packingListErrorLogger, errorMap, trackFileIDToHeaderPartitionPayLoadMap);
analyzeOutputProfileLists( rootFile, assetMap, packingList, applicationCompositionList, packingListErrorLogger, errorMap);
}

List<ApplicationComposition> applicationCompositionList = analyzeApplicationCompositions( rootFile, assetMap, packingList, headerPartitionPayloadRecords, packingListErrorLogger, errorMap, trackFileIDToHeaderPartitionPayLoadMap);
analyzeOutputProfileLists( rootFile, assetMap, packingList, applicationCompositionList, packingListErrorLogger, errorMap);

} catch (IMFException e) {
packingListErrorLogger.addAllErrors(e.getErrors());
}
Expand Down

0 comments on commit bc771cc

Please sign in to comment.