From bebbefe46e815ab805b262adf01bc1fa0a5cd67b Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: Wed, 30 Mar 2022 22:34:37 +0200 Subject: [PATCH] Variants file in config can contain path rcm-metadata configs contain definition of variants file. It can be in form of SCM or file path. Before the fix, only variants file's basename was consireded. Now the path can be written. Example: variants_file = "comps/variants-rcmtools-2.0-rhel-8.xml" JIRA: RHELCMP-8705 Signed-off-by: Ondrej Nosek --- pungi/compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/compose.py b/pungi/compose.py index ce0fdb74..e3ed352c 100644 --- a/pungi/compose.py +++ b/pungi/compose.py @@ -408,7 +408,7 @@ class Compose(kobo.log.LoggingBase): ) else: file_name = os.path.basename(scm_dict) - scm_dict = os.path.join(self.config_dir, os.path.basename(scm_dict)) + scm_dict = os.path.join(self.config_dir, scm_dict) self.log_debug("Writing variants file: %s", variants_file) tmp_dir = self.mkdtemp(prefix="variants_file_")