From 290859c153ac41f2574bb4be441339536ac27746 Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Nov 11 2021 11:26:53 +0000 Subject: Include `fmf` config in the list of reserved files Do not remove `fmf` files during `fedpkg import` as these are configuration files used for enabling `tmt` tests. See the Fedora CI docs for details: https://docs.fedoraproject.org/en-US/ci/tmt/ Resolves https://pagure.io/fedpkg/issue/452 Signed-off-by: Petr Šplíchal --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index 2edcb09..db64224 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -1814,7 +1814,9 @@ class Commands(object): # while importing a SRPM. # The list also contains files, that are important and should # not be removed by import command. - reserved_ourfiles = ['README.md', 'gating.yaml', 'tests/*', '*.rpmlintrc'] + reserved_ourfiles = [ + 'README.md', 'gating.yaml', 'tests/*', '*.rpmlintrc', + '.fmf/*', '*.fmf'] # Get a list of files we're currently tracking ourfiles = self.repo.git.ls_files().split('\n')