summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-01-28 16:27:07 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-04 13:15:29 +0000
commit22aa5d040604b37ba984bae9e800e56ba6e4956d (patch)
tree609583c0e6618d34aba00af84c661cf26eac899b
parent9ab80ad88d34622a81670cdc45cc3275fc3ebabe (diff)
downloadopenembedded-core-22aa5d040604b37ba984bae9e800e56ba6e4956d.tar.gz
openembedded-core-22aa5d040604b37ba984bae9e800e56ba6e4956d.tar.bz2
openembedded-core-22aa5d040604b37ba984bae9e800e56ba6e4956d.zip
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. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/classes/kernel-yocto.bbclass2
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):
sources_list=[]
for s in sources:
base, ext = os.path.splitext(os.path.basename(s))
- if ext and ext in ('.scc' '.cfg'):
+ if ext and ext in [".scc", ".cfg"]:
sources_list.append(s)
elif base and base in 'defconfig':
sources_list.append(s)