From: Daniel Cordero <[email protected]>

With the change to catalyst.conf into TOML format, update the
catalyst.git script to quote paths. The / character is not allowed in
TOML values unless quoted.

fixes: 66e78a8d55d (catalyst: Convert catalyst.conf to TOML)

  NOTICE  : Loading configuration file: /tmp/catalyst.conf.3b5seckb
  CRITICAL: Could not find parse configuration file: 
/tmp/catalyst.conf.3b5seckb: Invalid date or number (line 1 column 1 char 0)
---
 bin/catalyst.git | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/catalyst.git b/bin/catalyst.git
index 9b3deaa1..071bf58b 100755
--- a/bin/catalyst.git
+++ b/bin/catalyst.git
@@ -27,9 +27,9 @@ def main(argv):
        with tempfile.NamedTemporaryFile(prefix='catalyst.conf.') as conf:
                # Set up a config file with paths to the local tree.
                conf.write(
-                       ('sharedir=%(source_root)s\n'
-                        'shdir=%(source_root)s/targets\n'
-                        'envscript=%(source_root)s/etc/catalystrc\n'
+                       ('sharedir="%(source_root)s"\n'
+                        'shdir="%(source_root)s/targets"\n'
+                        'envscript="%(source_root)s/etc/catalystrc"\n'
                         % {'source_root': source_root}).encode('utf8')
                )
                conf.flush()
-- 
2.26.2


Reply via email to