steps/writelayerinfo: Always rewrite the file as concat doesn't make sense

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2022-08-01 22:13:20 +01:00
parent b074abdc83
commit 83f6475915

View File

@ -37,7 +37,7 @@ class WriteLayerInfo(buildstep.ShellMixin, buildstep.BuildStep):
repojson = self.generateLayerInfo()
layerinfo = os.path.join(self.getProperty("builddir"),
"layerinfo.json")
writerepos = "printf '%s' >> %s" % (repojson, layerinfo)
writerepos = "printf '%s' > %s" % (repojson, layerinfo)
cmd = yield self.makeRemoteShellCommand(
command=writerepos)
yield self.runCommand(cmd)