Fix the epel-release rpm symlink

Check for the absolute path if its exists or not rather than
relative path

Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
Mohan Boddu 2021-06-25 13:13:45 -04:00 committed by asaleh
parent 07fd9a34aa
commit d53449bb56

View file

@ -415,7 +415,7 @@ def update_epel_release_latest(releases):
if 'Packages' in str(path) and 'x86_64' in str(path):
dest = '/pub/epel/epel-release-latest-' + release[4]+ '.noarch.rpm'
if os.path.exists(dest):
if not os.path.exists(os.readlink(dest)):
if not os.path.exists(os.path.join(EPELDEST,os.readlink(dest))):
os.remove(dest)
os.symlink(os.path.relpath(path, os.path.dirname(dest)), dest)
break