diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-13 16:23:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-13 16:56:36 +0000 |
commit | 8a98af2bb5858ef5fd47cf44183eb73a154043dc (patch) | |
tree | 317fc99ee9c13f4a6e4f27100d9e6de0dc4c0795 /meta | |
parent | 0f4d99d207b224bb9ce23de00a48f795ae20b3a0 (diff) | |
download | poky-8a98af2bb5858ef5fd47cf44183eb73a154043dc.tar.gz |
patch.bbclass: Ensure the DATE and SRCDATE variable exclusions apply to the correct function
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.
(From OE-Core rev: bd047935305c872b565f30b46c94b7077e5fb3a2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/patch.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass index 335d02ec71..471c32bce2 100644 --- a/meta/classes/patch.bbclass +++ b/meta/classes/patch.bbclass | |||
@@ -105,6 +105,8 @@ def should_apply(parm, d): | |||
105 | 105 | ||
106 | return True, None | 106 | return True, None |
107 | 107 | ||
108 | should_apply[vardepsexclude] = "DATE SRCDATE" | ||
109 | |||
108 | python patch_do_patch() { | 110 | python patch_do_patch() { |
109 | import oe.patch | 111 | import oe.patch |
110 | 112 | ||
@@ -155,7 +157,7 @@ python patch_do_patch() { | |||
155 | bb.fatal(str(exc)) | 157 | bb.fatal(str(exc)) |
156 | resolver.Resolve() | 158 | resolver.Resolve() |
157 | } | 159 | } |
158 | patch_do_patch[vardepsexclude] = "DATE SRCDATE PATCHRESOLVE" | 160 | patch_do_patch[vardepsexclude] = "PATCHRESOLVE" |
159 | 161 | ||
160 | addtask patch after do_unpack | 162 | addtask patch after do_unpack |
161 | do_patch[dirs] = "${WORKDIR}" | 163 | do_patch[dirs] = "${WORKDIR}" |