From 2da175571cf91cb5c7f1aa8abb3e7941f523019a Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Tue, 28 Aug 2018 19:40:10 +0000 Subject: [PATCH] Fixes for rawhide ostree sync Signed-off-by: Mohan Boddu --- roles/bodhi2/backend/files/new-updates-sync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/bodhi2/backend/files/new-updates-sync b/roles/bodhi2/backend/files/new-updates-sync index 3619e6c13b..e625f50853 100755 --- a/roles/bodhi2/backend/files/new-updates-sync +++ b/roles/bodhi2/backend/files/new-updates-sync @@ -367,10 +367,14 @@ def determine_last_link(release, repo): if repo == 'rawhide': source_path = os.path.join(RAWHIDESOURCE, RELEASES[release]['repos'][repo]['from']) + #Since latest-Fedora-Rawhide is a symlink pointing to just the + #compose dir rather than its full path, we need the absolute path + #of the compose rather than relative path + target = os.path.realpath(source_path) else: source_path = os.path.join(SOURCE, RELEASES[release]['repos'][repo]['from']) - target = os.readlink(source_path) + target = os.readlink(source_path) logger.info('Release %s, repo %s, target %s', release, repo, target) RELEASES[release]['repos'][repo]['from'] = target return target