From c924d181e8d04f2c85183d575c25fc3a1d833f36 Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Tue, 31 Oct 2023 11:46:33 -0400 Subject: [PATCH] Skip filtering packages in stage generation if no package set provided --- build_stage_repository | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_stage_repository b/build_stage_repository index a39a806..4ad86a2 100755 --- a/build_stage_repository +++ b/build_stage_repository @@ -240,11 +240,11 @@ def parse_repodiff(diff): return packages -def download_copr_packages(packages, urls, repository, downloads_dir, included_packages): +def download_copr_packages(packages, urls, repository, downloads_dir, included_packages=None): for package in packages: name, version, release = package.rsplit('-', 2) - if name in included_packages: + if included_packages is None or name in included_packages: version_without_epoch = version.rsplit(':', 1)[-1] name = f"{name}-{version_without_epoch}-{release}.rpm" @@ -300,7 +300,7 @@ def add_packages_from_copr(collection, version, dist, arch, rpm_dir, srpm_dir): srpm_diff = compare_repositories(copr_repo, srpm_dir, arch, True) srpm_packages = parse_repodiff(srpm_diff) - download_copr_packages(srpm_packages, copr_package_urls, copr_repo, srpm_dir, packages_to_include) + download_copr_packages(srpm_packages, copr_package_urls, copr_repo, srpm_dir) def update_repositories(collection, version, dist, rpm_dir, srpm_dir):