]> code.ossystems Code Review - openembedded-core.git/commitdiff
staging: Handle stale sysroot rebuild issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Jan 2017 14:40:36 +0000 (14:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Jan 2017 23:31:18 +0000 (23:31 +0000)
If a stale sysroot object was found the complete stamp wasn't removed,
meaning later code could fail when the new link creation was attempted.
Ensure the stale complete stamp is also removed if present.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/staging.bbclass

index fdb393bbb99f9563f2822fa24a9e926c3af8a611..b9c84a4057629841d2c41a42215ec5b4a5aa7ce7 100644 (file)
@@ -520,6 +520,8 @@ python extend_recipe_sysroot() {
                 bb.note("%s exists in sysroot, but is stale (%s vs. %s), removing." % (c, lnk, c + "." + taskhash))
                 sstate_clean_manifest(depdir + "/" + lnk, d, workdir)
                 os.unlink(depdir + "/" + c)
+                if os.path.lexists(depdir + "/" + c + ".complete"):
+                    os.unlink(depdir + "/" + c + ".complete")
         elif os.path.lexists(depdir + "/" + c):
             os.unlink(depdir + "/" + c)