copr-dist-git: allow importing autospec srpms

https://pagure.io/copr/copr/issue/2317
This commit is contained in:
Pavel Raiskup 2022-10-04 15:52:01 +02:00
parent 3050376b0d
commit d63f67e106
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- /usr/lib/python3.10/site-packages/pyrpkg/utils.py 2022-09-06 20:05:35.000000000 +0000
+++ /usr/lib/python3.10/site-packages/pyrpkg/utils.py 2022-09-22 19:08:16.328405267 +0000
@@ -323,6 +323,7 @@
def spec_file_processed_by_rpmautospec(file_name, dir_path=None):
+ return False
file_path = os.path.join(dir_path or "", file_name)
try:

View file

@ -31,6 +31,11 @@
- dist-git-selinux
- copr-dist-git
- name: re-allow importing autospec pre-generated srpms, https://pagure.io/copr/copr/issue/2317
patch: src=patches/python3-rpkg-autospec.patch
dest=/usr/lib/python3.10/site-packages/pyrpkg/utils.py
tags: patches
- name: switch selinux to enforcing
selinux: policy=targeted state=enforcing