- Can exclude packages from packages.json by its architecture. E.g. package_name.package_arch

This commit is contained in:
soksanichenko 2022-11-09 22:22:40 +02:00
parent 750499eda1
commit 2294b729f8

View File

@ -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,