diff --git a/roles/bodhi2/backend/files/new-updates-sync b/roles/bodhi2/backend/files/new-updates-sync index 0df4b7c2c3..95e0bf8b39 100755 --- a/roles/bodhi2/backend/files/new-updates-sync +++ b/roles/bodhi2/backend/files/new-updates-sync @@ -493,7 +493,7 @@ def get_epel_release_rel_path(release, epel_next=False): if 'Packages' in str(path) and 'x86_64' in str(path): pkg_relpath = os.path.relpath(path,EPELDEST) else: - for path in Path(RELEASES[release]['repos']['epel']['to'][0]['dest']).rglob('epel-release*noarch*'): + 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): pkg_relpath = os.path.relpath(path,EPELDEST) return path, pkg_relpath