From patchwork Fri Feb 1 14:02:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/5] kernel-yocto: fix .scc and .cfg matching Date: Fri, 01 Feb 2013 14:02:36 -0000 From: Bruce Ashfield X-Patchwork-Id: 43839 Message-Id: <9f78073ee8df4b9e5e843e03ef6fbc549b7ba63d.1359726620.git.bruce.ashfield@windriver.com> To: richard.purdie@linuxfoundation.org Cc: openembedded-core@lists.openembedded.org 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 --- meta/classes/kernel-yocto.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index b336e43..962b493 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)