]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: fix .scc and .cfg matching
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 28 Jan 2013 21:27:07 +0000 (16:27 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Feb 2013 13:15:29 +0000 (13:15 +0000)
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>
meta/classes/kernel-yocto.bbclass

index b336e43ffef8b943b2dd4a83119e28d108d363e6..962b4936b937557c0cc5010084b0708d2eb90cca 100644 (file)
@@ -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)