The manifest file can become corrupted if sstate-inputdirs and sstate-outputdirs
don't have matching endings. This patch ensures that even if set incorrectly,
the code functions as intended, thereby handling manifest corruption safely.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
def sstate_add(ss, source, dest, d):
srcbase = os.path.basename(source)
+ if not source.endswith:
+ source = source + "/"
+ if not dest.endswith:
+ dest = dest + "/"
ss['dirs'].append([srcbase, source, dest])
return ss