fix condition to check epel-release rpm symlink
This commit is contained in:
parent
bb9864402f
commit
6aaa49c63d
1 changed files with 2 additions and 2 deletions
|
@ -460,8 +460,8 @@ def update_epel_release_latest(releases):
|
|||
for path in Path(RELEASES[release]['repos']['epel']['to'][0]['dest']).rglob('epel-release*noarch*'):
|
||||
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.path.join(EPELDEST,os.readlink(dest))):
|
||||
if os.path.lexists(dest):
|
||||
if not os.path.islink(dest) or 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue