From 56fd4c186685845e7f9b47cc3d21238322e7c13b Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Nov 27 2020 07:57:37 +0000 Subject: backend: get back to using standard createrepo_c command Fix #1593 As modulemd-tools documentation suggests, the `createrepo_mod` tool is needed only on older systems. The modularity support is built into the `createrepo_c` tool itself since version 0.16.1 (which is available for F32+) --- diff --git a/backend/copr-backend.spec b/backend/copr-backend.spec index 503a3df..6784936 100644 --- a/backend/copr-backend.spec +++ b/backend/copr-backend.spec @@ -21,7 +21,7 @@ Source1: https://github.com/fedora-copr/%{tests_tar}/archive/v%{tests_version BuildArch: noarch BuildRequires: asciidoc -BuildRequires: createrepo_c +BuildRequires: createrepo_c >= 0.16.1 BuildRequires: libappstream-glib-builder BuildRequires: libxslt BuildRequires: redis @@ -56,7 +56,7 @@ BuildRequires: modulemd-tools >= 0.4 Requires: (copr-selinux if selinux-policy-targeted) Requires: ansible -Requires: createrepo_c +Requires: createrepo_c >= 0.16.1 Requires: crontabs Requires: gawk Requires: libappstream-glib-builder diff --git a/backend/run/copr-repo b/backend/run/copr-repo index 6598683..f45bcbf 100755 --- a/backend/run/copr-repo +++ b/backend/run/copr-repo @@ -130,7 +130,7 @@ def filter_existing(opts, subdirs): def run_createrepo(opts): - createrepo_cmd = ['/usr/bin/createrepo_mod', opts.directory, '--database', '--ignore-lock', + createrepo_cmd = ['/usr/bin/createrepo_c', opts.directory, '--database', '--ignore-lock', '--local-sqlite', '--cachedir', '/tmp/', '--workers', '8'] if "epel-5" in opts.directory or "rhel-5" in opts.directory: