From 805f7ff0a8afc777403afaa0e44f7c78f512ac94 Mon Sep 17 00:00:00 2001 From: Diego Herrera Date: Mon, 9 Dec 2024 19:15:45 -0300 Subject: [PATCH] Force to use x86_64 epel release package abs path Signed-off-by: Diego Herrera --- roles/bodhi2/backend/files/new-updates-sync | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/bodhi2/backend/files/new-updates-sync b/roles/bodhi2/backend/files/new-updates-sync index cd5398eab5..b745501608 100755 --- a/roles/bodhi2/backend/files/new-updates-sync +++ b/roles/bodhi2/backend/files/new-updates-sync @@ -455,12 +455,14 @@ def get_epel_release_rel_path(release, epel_next=False): if epel_next: for path in Path(RELEASES[release]['repos']['epel']['to'][0]['dest']).rglob('epel-next-release*noarch*'): if 'Packages' in str(path) and 'x86_64' in str(path): + abs_path = path pkg_relpath = os.path.relpath(path,EPELDEST) else: for path in sorted(Path(RELEASES[release]['repos']['epel']['to'][0]['dest']).rglob('epel-release*noarch*')): if 'Packages' in str(path) and 'x86_64' in str(path): + abs_path = path pkg_relpath = os.path.relpath(path,EPELDEST) - return path, pkg_relpath + return abs_path, pkg_relpath def update_epel_release_latest(releases): """