From 85ab9c77a8bb28668129d52be9fbdabf34d157fc Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Jan 20 2022 13:05:57 +0000 Subject: Remove mock init phase --- diff --git a/roles/mock-build/tasks/main.yaml b/roles/mock-build/tasks/main.yaml index fb064de..7b73744 100644 --- a/roles/mock-build/tasks/main.yaml +++ b/roles/mock-build/tasks/main.yaml @@ -13,9 +13,6 @@ set_fact: mock_opts: "-v -r {{ mock_config }} {% if no_check %}--rpmbuild-opts='--nocheck'{% endif %} " -- name: Init the mock chroot - command: mock {{ mock_opts }} --init - - name: Create additional repos baseurls for mock set_fact: repos_baseurls: > diff --git a/roles/mock-srpm-build/tasks/main.yaml b/roles/mock-srpm-build/tasks/main.yaml index 5e2ad65..252e17f 100644 --- a/roles/mock-srpm-build/tasks/main.yaml +++ b/roles/mock-srpm-build/tasks/main.yaml @@ -23,9 +23,6 @@ {{ ansible_user_dir }}/{{ zuul.project.src_dir }}/*.spec when: not {{ no_fetch_sources|default(false) }} -- name: Init the mock chroot - command: mock {{ mock_opts }} --init - - name: Build the SRPM shell: > mock {{ mock_opts }} --buildsrpm