[3/5] kernel-yocto: fix .scc and .cfg matching

Submitted by Bruce Ashfield on Feb. 1, 2013, 2:02 p.m. | Patch ID: 43839


Message ID 9f78073ee8df4b9e5e843e03ef6fbc549b7ba63d.1359726620.git.bruce.ashfield@windriver.com
State Accepted
Commit 167e4700991e7a594337ce6eceaeecd9f733f130
Headers show

Commit Message

Bruce Ashfield Feb. 1, 2013, 2:02 p.m.
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>
 meta/classes/kernel-yocto.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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):
     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"]:
         elif base and base in 'defconfig':