fetch-assets: also include incomplete builds with --fetch-all

We want them to end up in staging still so they get some testing.
This commit is contained in:
Christoph Reiter 2021-05-15 11:46:20 +02:00
parent f6d048f250
commit b7465338f6

View File

@ -1086,7 +1086,8 @@ def fetch_assets(args: Any) -> None:
pkg_patterns = pkg.get_build_patterns(build_type)
if status == PackageStatus.FINISHED:
all_patterns.setdefault(repo_type, []).extend(pkg_patterns)
elif status == PackageStatus.FINISHED_BUT_BLOCKED:
elif status in [PackageStatus.FINISHED_BUT_BLOCKED,
PackageStatus.FINISHED_BUT_INCOMPLETE]:
if fetch_all:
all_patterns.setdefault(repo_type, []).extend(pkg_patterns)
else: