Example #1
0
def __CreatePipelines(basicConfig: BasicConfig,
                      builder: PipelineCommandBuilder,
                      resolvedBuildOrder: List[Package]) -> List[RecipeRecord]:
    pipelines = []  # type: List[RecipeRecord]
    for package in resolvedBuildOrder:
        basicConfig.LogPrint("Creating package {0} build pipelines".format(
            package.Name))
        try:
            basicConfig.PushIndent()
            record = RecipeRecord(basicConfig, builder, package)
            pipelines.append(record)
        finally:
            basicConfig.PopIndent()
    return pipelines
Example #2
0
def __FindMissingInstallations(
        basicConfig: BasicConfig, validationEngine: ValidationEngine,
        resolvedBuildOrder: List[Package],
        recipePackageStateCache: RecipePackageStateCache) -> List[Package]:
    """ Check packages in the resolvedBuildOrder and return all that fails install validation, keeping the initial order """
    missingPackages = []  # type: List[Package]
    for package in resolvedBuildOrder:
        basicConfig.LogPrint("Checking if package {0} is installed".format(
            package.Name))
        try:
            basicConfig.PushIndent()
            if not __TryValidateInstallation(basicConfig, validationEngine,
                                             package, missingPackages,
                                             recipePackageStateCache):
                missingPackages.append(package)
        finally:
            basicConfig.PopIndent()
    return missingPackages