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:
parent
07fd9a34aa
commit
d53449bb56
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ def update_epel_release_latest(releases):
|
||||||
if 'Packages' in str(path) and 'x86_64' in str(path):
|
if 'Packages' in str(path) and 'x86_64' in str(path):
|
||||||
dest = '/pub/epel/epel-release-latest-' + release[4]+ '.noarch.rpm'
|
dest = '/pub/epel/epel-release-latest-' + release[4]+ '.noarch.rpm'
|
||||||
if os.path.exists(dest):
|
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.remove(dest)
|
||||||
os.symlink(os.path.relpath(path, os.path.dirname(dest)), dest)
|
os.symlink(os.path.relpath(path, os.path.dirname(dest)), dest)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue