From 01114e6d8e610a2e98a0090ccb32aac799272dad Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Sep 01 2019 16:21:05 +0000 Subject: Update the cron job with latest repo path. Getting the repomd.xml file was failing (404) for most of the releases this commit corrects the url path needed to access this file. Signed-off-by: Clement Verna --- diff --git a/mdapi-get_repo_md b/mdapi-get_repo_md index 0a766ba..0fb31f2 100755 --- a/mdapi-get_repo_md +++ b/mdapi-get_repo_md @@ -483,8 +483,8 @@ def main(): 'Fedora': [ '%s/pub/fedora/linux/releases/%s/Everything/x86_64/os/repodata', - '%s/pub/fedora/linux/updates/%s/x86_64/repodata', - '%s/pub/fedora/linux/updates/testing/%s/x86_64/repodata', + '%s/pub/fedora/linux/updates/%s/Everything/x86_64/repodata', + '%s/pub/fedora/linux/updates/testing/%s/Everything/x86_64/repodata', ], 'Fedora EPEL': [ @@ -504,12 +504,15 @@ def main(): for idx, url in enumerate(urls[release['name']]): if release['name'] == 'Fedora': name = fedora_repos[idx] % release['koji_name'] + elif release['name'] == 'Fedora EPEL' and version == "8": + name = epel_repos[idx] % release['koji_name'] + url = url.replace('/x86_64/', '/Everything/x86_64/') else: name = epel_repos[idx] % release['koji_name'] rurl = url % (DL_SERVER, version) repositories.append((rurl, name)) - rurl = rurl.replace('/x86_64/', '/SRPMS/') + rurl = rurl.replace('/x86_64/os', '/source/tree') repositories.append((rurl, 'src_%s' % name)) # In parallel