From a73a64213dc32cfa2dbbcf3d39f400197ee0ed65 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 4 Dec 2019 16:34:42 +0100 Subject: [PATCH] copr: dist-git: try one hotfix patch --- .../dist_git/files/patches/disable-cgit-refresh.patch | 10 ++++++++++ roles/copr/dist_git/tasks/main.yml | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 roles/copr/dist_git/files/patches/disable-cgit-refresh.patch diff --git a/roles/copr/dist_git/files/patches/disable-cgit-refresh.patch b/roles/copr/dist_git/files/patches/disable-cgit-refresh.patch new file mode 100644 index 0000000000..cad9f81330 --- /dev/null +++ b/roles/copr/dist_git/files/patches/disable-cgit-refresh.patch @@ -0,0 +1,10 @@ +--- /usr/share/copr/dist_git/bin/cgit_pkg_list 2019-07-09 13:14:44.000000000 +0000 ++++ /usr/share/copr/dist_git/bin/cgit_pkg_list 2019-08-27 20:35:47.278916631 +0000 +@@ -4,6 +4,7 @@ + # This speeds up cgit as it doesn't have to recurse into all dirs + # Looking for git repos. + ++exit 0 + destination=/var/lib/copr-dist-git/cgit_pkg_list + + if [ -n "$1" ] diff --git a/roles/copr/dist_git/tasks/main.yml b/roles/copr/dist_git/tasks/main.yml index 4c5bc7bfcc..6078574325 100644 --- a/roles/copr/dist_git/tasks/main.yml +++ b/roles/copr/dist_git/tasks/main.yml @@ -120,5 +120,10 @@ tags: - selinux +- name: dont regenerate cgit all the time for now + patch: src=patches/disable-cgit-refresh.patch + dest=/usr/share/copr/dist_git/bin/cgit_pkg_list + tags: patches + - name: Create /var/cache/cgit/repo-list.rc if does not exists (it last 30 minutes to generate) command: /etc/cron.hourly/copr-dist-git creates=/var/cache/cgit/repo-list.rc