From 8095e05dceaa285493758aa8f3410f2729012d25 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Nov 20 2024 18:03:19 +0000 Subject: ensure macros and env values passed to mock are strings --- diff --git a/builder/kojid b/builder/kojid index f369f50..9acea97 100755 --- a/builder/kojid +++ b/builder/kojid @@ -332,9 +332,9 @@ class BuildRoot(object): for key in self.config['extra']: if key.startswith('rpm.macro.'): macro = '%' + key[10:] - opts['tag_macros'][macro] = self.config['extra'][key] + opts['tag_macros'][macro] = str(self.config['extra'][key]) elif key.startswith('rpm.env.'): - opts['tag_envvars'][key[8:]] = self.config['extra'][key] + opts['tag_envvars'][key[8:]] = str(self.config['extra'][key]) if 'mock.use_bootstrap' in self.config['extra']: opts['use_bootstrap'] = bool(self.config['extra']['mock.use_bootstrap'])