Skip to content

Commit

Permalink
Fixed package selected on Fedora 40
Browse files Browse the repository at this point in the history
On Fedora 40 cf-remote was selecting the SUSE 15 package instead of the EL9 package.

Ticket: ENT-11766
Changelog: Title
  • Loading branch information
nickanderson committed May 7, 2024
1 parent 652a5a6 commit 837861b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cf_remote/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def add_tags_from_filename(self, filename):
self.add_tag("opensuse-leap15")
self.add_tag("opensuse-leap")


# We don't build for Fedora, so we need to map the distro to the correct packages
if "el9" in self.tags:
self.add_tag("fedora40")
log.debug("Mapping fedora40 host tag to el9 package tag")

parts = filename.split(".")
if "x86_64" in parts:
self.add_tag("x86_64")
Expand Down

0 comments on commit 837861b

Please sign in to comment.