AlmaLinux / build-system

The AlmaLinux OS project Build System documentation and issue tracker.
Creative Commons Attribution Share Alike 4.0 International
27 stars 10 forks source link

Errata noarch packages are partially considered as arch packages #352

Closed javihernandez closed 1 month ago

javihernandez commented 2 months ago

While working on the new errata implementation, I noticed that noarch packages are being treated as arch packages when it comes to oval data generation.

image

As you can see, flatpak-selinux is a noarch package but is being considered as an arch one. Let's take a look in db:

Actually, this is not a problem as pulp update record packages are getting the right arch and oval does not indicate the architecture of pkgs. This was the way to go when taking data out of RHEL's OVAL streams, because architectures are not mentioned in packages objects. It is somehow reflected in states but there's no way to figure out the architecture of a package, and for this reason, we've been adding noarch as arch packages for every supported architecture.

This involves a tiny update of the albs-web-server's load_platform_packages method and a small tweak in frontend to show noarch errata packages, as right now it only shows packages that belong to the platform's supported architectures