]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/sstatesig: fix wildcard matching wrong task signature files
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 3 Nov 2017 03:16:10 +0000 (16:16 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Dec 2017 17:14:24 +0000 (17:14 +0000)
commit8565391a4ebb574141b5d09bff710fc02c73ba34
treeaf18a2b7c5e6eb0848392f95417ee1754854884e
parentaaeb56d2f9193bdfb108f20e9ae2bbb4505815c0
lib/oe/sstatesig: fix wildcard matching wrong task signature files

With a '*' as a wildcard for the signature here we can also match a
portion of the task name with the result that we may match a sigdata
file for the wrong task. Luckily the signature is always the same
length - 32 characters - so we can simply use 32 '?' characters instead.
(A regex would have been another alternative, but the wildcard should be
effective and I felt like a regex would complicate the code more than
this solution).

Fixes [YOCTO #11763].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
meta/lib/oe/sstatesig.py