From 0c4030f28e1bff6ff5cec316a3ea85db21c74e29 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 06 2021 09:22:04 +0000 Subject: [PATCH 1/2] Move processing the koji repo after all the others repos Signed-off-by: Pierre-Yves Chibon --- diff --git a/mdapi-get_repo_md b/mdapi-get_repo_md index b5a1a1c..852c2fb 100755 --- a/mdapi-get_repo_md +++ b/mdapi-get_repo_md @@ -467,10 +467,6 @@ def main(): requests.packages.urllib3.disable_warnings() repositories = [] - # Get the koji repo - repositories.append( - (f'{KOJI_REPO}/rawhide/latest/x86_64/repodata', 'koji') - ) # Get the development repos (rawhide + eventually Fn+1 branched) dev_releases = list_branches(status='Under Development') @@ -526,6 +522,11 @@ def main(): rurl = rurl.replace('/x86_64/os', '/source/tree') repositories.append((rurl, f'src_{name}')) + # Finish with the koji repo + repositories.append( + (f'{KOJI_REPO}/rawhide/latest/x86_64/repodata', 'koji') + ) + # In parallel # p = multiprocessing.Pool(10) # p.map(process_repo, repositories) @@ -551,4 +552,4 @@ def main(): if __name__ == '__main__': - main() \ No newline at end of file + main() From 7e3f403bdf6d298a3de62ab6d949de3ff9c49adf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 06 2021 09:22:27 +0000 Subject: [PATCH 2/2] Install mdapi-messages from pypi in the container Signed-off-by: Pierre-Yves Chibon --- diff --git a/Dockerfile b/Dockerfile index 39bcc8e..d1bf716 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ EXPOSE 8080 RUN dnf -y install python3-aiohttp python3-requests python3-fedora-messaging python3-uvloop python3-pip python3-gunicorn\ && dnf clean all \ - && pip3 install aiosqlite + && pip3 install aiosqlite mdapi-messages ENV MDAPI_CONFIG=/etc/mdapi/mdapi.cfg COPY . /code