diff --git a/pungi/scripts/create_packages_json.py b/pungi/scripts/create_packages_json.py index 8aad90c6..d62869b9 100644 --- a/pungi/scripts/create_packages_json.py +++ b/pungi/scripts/create_packages_json.py @@ -394,8 +394,9 @@ class PackagesGenerator: package_arch = package_dict['arch'] else: package_arch = package.arch - if any(re.search(excluded_package, package_name) - for excluded_package in self.excluded_packages): + if package_name in self.excluded_packages or \ + f'{package_name}.' \ + f'{package.arch}' in self.excluded_packages: continue src_package_name = dnf.subject.Subject( package.rpm_sourcerpm,