Fix the dir location in updates sync

Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
Mohan Boddu 2021-11-30 20:50:08 -05:00
parent 2e7473fdbd
commit 531cbaf6e9

View file

@ -453,9 +453,9 @@ 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):
if "next" in str(path):
dest = 'pub/epel/epel-next-release-latest-' + release[4] + '.noarch.rpm'
dest = '/pub/epel/epel-next-release-latest-' + release[4] + '.noarch.rpm'
else:
dest = 'pub/epel/epel-release-latest-' + release[4] + '.noarch.rpm'
dest = '/pub/epel/epel-release-latest-' + release[4] + '.noarch.rpm'
pkg_relpath = os.path.relpath(path,EPELDEST)