diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-01-28 16:27:07 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-04 13:18:27 +0000 |
commit | 167e4700991e7a594337ce6eceaeecd9f733f130 (patch) | |
tree | ee0b491b1c6d88b277d1d09b3b8e15504fbd788a /meta/classes/kernel-yocto.bbclass | |
parent | 996c3f80baae8664c72910e0d21d59af415e0ed7 (diff) | |
download | poky-167e4700991e7a594337ce6eceaeecd9f733f130.tar.gz |
kernel-yocto: fix .scc and .cfg matching
SRC_URIs that contained git repositories or other constructs that resulted
in an extension of "." or a substring of "scc" or "cfg" were matching the
tests for patches and configs. This was due to a python tuple being used
instead of an array. Switching to an array makes the match exact and the
behaviour we want.
(From OE-Core rev: 22aa5d040604b37ba984bae9e800e56ba6e4956d)
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index b336e43ffe..962b4936b9 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -20,7 +20,7 @@ def find_sccs(d): | |||
20 | sources_list=[] | 20 | sources_list=[] |
21 | for s in sources: | 21 | for s in sources: |
22 | base, ext = os.path.splitext(os.path.basename(s)) | 22 | base, ext = os.path.splitext(os.path.basename(s)) |
23 | if ext and ext in ('.scc' '.cfg'): | 23 | if ext and ext in [".scc", ".cfg"]: |
24 | sources_list.append(s) | 24 | sources_list.append(s) |
25 | elif base and base in 'defconfig': | 25 | elif base and base in 'defconfig': |
26 | sources_list.append(s) | 26 | sources_list.append(s) |