diff options
author | Mario Domenech Goulart <mario@ossystems.com.br> | 2009-07-15 16:52:28 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2009-09-17 14:20:37 -0300 |
commit | 55f42a3dd5b43c3ad4bb2425410f64a9e0dd924a (patch) | |
tree | de65bc8e8bde72e96278be9ac242b969aacc1d34 /classes | |
parent | 8a40ec536fa7389c6ac39b4adb05332d023a9e36 (diff) |
Avoids overwriting Python's built-in `str' in get_devtable_list
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image.bbclass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index f7afbab81e..f03a115388 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -72,13 +72,11 @@ def get_devtable_list(d): devtable = bb.data.getVar('IMAGE_DEVICE_TABLE', d, 1) if devtable != None: return devtable - str = "" devtables = bb.data.getVar('IMAGE_DEVICE_TABLES', d, 1) if devtables == None: devtables = 'files/device_table-minimal.txt' - for devtable in devtables.split(): - str += " %s" % bb.which(bb.data.getVar('BBPATH', d, 1), devtable) - return str + return " ".join([ bb.which(bb.data.getVar('BBPATH', d, 1), devtable) + for devtable in devtables.split() ]) def get_imagecmds(d): import bb |