def pipeline_stages(self, new_version): """ Build the list of pipeline stages feeding into the ContentAssociation stage. Args: new_version (:class:`~pulpcore.plugin.models.RepositoryVersion`): The new repository version that is going to be built. Returns: list: List of :class:`~pulpcore.plugin.stages.Stage` instances """ pipeline = [ self.first_stage, QueryExistingArtifacts(), ArtifactDownloader(), DebDropEmptyContent(), ArtifactSaver(), # This is dependent on # https://salsa.debian.org/python-debian-team/python-debian/merge_requests/11 # DebUpdatePackageAttributes(), DebUpdateReleaseAttributes(self.first_stage.components, self.first_stage.architectures), DebUpdatePackageIndexAttributes(), QueryExistingContents(), ContentSaver(), RemoteArtifactSaver(), ResolveContentFutures(), ] return pipeline
def pipeline_stages(self, new_version): """ Build the list of pipeline stages feeding into the ContentAssociation stage. Args: new_version (:class:`~pulpcore.plugin.models.RepositoryVersion`): The new repository version that is going to be built. Returns: list: List of :class:`~pulpcore.plugin.stages.Stage` instances """ pipeline = [ self.first_stage, QueryExistingArtifacts(), ArtifactDownloader(), DebDropFailedArtifacts(), ArtifactSaver(), DebUpdateReleaseFileAttributes(remote=self.first_stage.remote), DebUpdatePackageIndexAttributes(), QueryExistingContents(), ContentSaver(), RemoteArtifactSaver(), ResolveContentFutures(), ] return pipeline
def pipeline_stages(self, new_version): """ Build a list of stages feeding into the ContentUnitAssociation stage. This defines the "architecture" of the entire sync. Args: new_version (:class:`~pulpcore.plugin.models.RepositoryVersion`): The new repository version that is going to be built. Returns: list: List of :class:`~pulpcore.plugin.stages.Stage` instances """ pipeline = [ self.first_stage, QueryExistingArtifacts(), ArtifactDownloader(), ArtifactSaver(), QueryExistingContents(), ContentSaver(), RemoteArtifactSaver(), ResolveContentFutures(), InterrelateContent(), ] return pipeline
def pipeline_stages(self): """ Build a list of stages. This defines the "architecture" of the content migration to Pulp 3. Returns: list: List of :class:`~pulpcore.plugin.stages.Stage` instances. """ pipeline = [ self.first_stage, QueryExistingArtifacts(), ArtifactSaver(), QueryExistingContents(), ContentSaver(), ResolveContentFutures(), RelatePulp2to3Content(), ] return pipeline