* [PATCH] sstate: Be consistent about sstate-inputdirs/outputdirs ending with '/'
@ 2012-11-13 14:05 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-11-13 14:05 UTC (permalink / raw)
To: openembedded-core
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>
---
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 744cc14..12c9c60 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -111,6 +111,10 @@ def sstate_state_fromvars(d, task = None):
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-13 14:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-13 14:05 [PATCH] sstate: Be consistent about sstate-inputdirs/outputdirs ending with '/' Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox