Ensure content separation for cargo's config.toml

The .cargo/config.toml file may exist for a project and the source
content configuration that we append needs to have a newline
separating it from the existing content.

Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
William Douglas
2025-02-28 09:45:59 -08:00
committed by William Douglas
parent e36a856c50
commit 07a959cc83
+1 -1
View File
@@ -548,7 +548,7 @@ class Specfile(object):
if self.config.subdir:
self._write_strip("pushd " + self.config.subdir)
self._write_strip("mkdir -p .cargo")
self._write_strip(f"echo '{self.config.cargo_vendors}' >> .cargo/config.toml")
self._write_strip(f"echo '\n{self.config.cargo_vendors}' >> .cargo/config.toml")
if self.config.subdir:
self._write_strip("popd")