]> code.ossystems Code Review - openembedded-core.git/commitdiff
patch.bbclass: Ensure the DATE and SRCDATE variable exclusions apply to the correct...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jan 2012 16:23:26 +0000 (16:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jan 2012 16:56:20 +0000 (16:56 +0000)
People have noticed that sstate is now getting invalidated very readily. The
issue is that the code using these variables was factored into a new function
but the variable exclusion was not. This patch moves the variable exclusion
to the correct place allowing the sstate checksums to work correctly.

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

index 335d02ec719ef06e3e39ca31dda71c63c79295d3..471c32bce2be7094b451a6a960705420f436d8e5 100644 (file)
@@ -105,6 +105,8 @@ def should_apply(parm, d):
 
        return True, None
 
+should_apply[vardepsexclude] = "DATE SRCDATE"
+
 python patch_do_patch() {
        import oe.patch
 
@@ -155,7 +157,7 @@ python patch_do_patch() {
                        bb.fatal(str(exc))
                resolver.Resolve()
 }
-patch_do_patch[vardepsexclude] = "DATE SRCDATE PATCHRESOLVE"
+patch_do_patch[vardepsexclude] = "PATCHRESOLVE"
 
 addtask patch after do_unpack
 do_patch[dirs] = "${WORKDIR}"