copr: dist-git: try one hotfix patch
This commit is contained in:
parent
10e11be502
commit
a73a64213d
2 changed files with 15 additions and 0 deletions
10
roles/copr/dist_git/files/patches/disable-cgit-refresh.patch
Normal file
10
roles/copr/dist_git/files/patches/disable-cgit-refresh.patch
Normal file
|
@ -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" ]
|
|
@ -120,5 +120,10 @@
|
||||||
tags:
|
tags:
|
||||||
- selinux
|
- 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)
|
- 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
|
command: /etc/cron.hourly/copr-dist-git creates=/var/cache/cgit/repo-list.rc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue