llvm_snapshot_builder.mixins.build_walker_mixin

CoprBuildWalkerMixin

Module Contents

Classes

CoprBuildWalkerMixin

Allows you to walk over each build filtered by state and chroot.

class llvm_snapshot_builder.mixins.build_walker_mixin.CoprBuildWalkerMixin(proj: Union[llvm_snapshot_builder.copr_project_ref.CoprProjectRef, str], chroots: list[str] = None, states: list[str] = None, **kwargs)[source]

Allows you to walk over each build filtered by state and chroot. Make sure you use CoprClientMixin as well.

property filtered_build_ids: list[str]

Returns the filtered build IDs

walk_builds(func: Callable[Ellipsis, bool] = None) bool[source]

Walks over every filtered build and optionally (if given) calls func with the current build object. When func returns False, the walk_builds function stops returns False as well.

Along the way, this function populates the filtered_build_ids property with the builds that were filtered. This can be used for copr operations that can handle multiple build ids.