diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/base.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes/buildhistory.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 4 | ||||
| -rw-r--r-- | meta/classes/report-error.bbclass | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 4be0a7e487..357062b3c1 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -10,7 +10,7 @@ inherit utility-tasks | |||
| 10 | inherit metadata_scm | 10 | inherit metadata_scm |
| 11 | inherit logging | 11 | inherit logging |
| 12 | 12 | ||
| 13 | OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath" | 13 | OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath" |
| 14 | OE_IMPORTS[type] = "list" | 14 | OE_IMPORTS[type] = "list" |
| 15 | 15 | ||
| 16 | def oe_import(d): | 16 | def oe_import(d): |
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 1ccd9ee485..6995d06950 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
| @@ -145,7 +145,7 @@ python buildhistory_emit_pkghistory() { | |||
| 145 | elif name == "RCONFLICTS": | 145 | elif name == "RCONFLICTS": |
| 146 | pkginfo.rconflicts = value | 146 | pkginfo.rconflicts = value |
| 147 | elif name == "PKGSIZE": | 147 | elif name == "PKGSIZE": |
| 148 | pkginfo.size = long(value) | 148 | pkginfo.size = int(value) |
| 149 | elif name == "FILES": | 149 | elif name == "FILES": |
| 150 | pkginfo.files = value | 150 | pkginfo.files = value |
| 151 | elif name == "FILELIST": | 151 | elif name == "FILELIST": |
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index a9c6fe5933..b9d9543409 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
| @@ -129,8 +129,8 @@ python copy_buildsystem () { | |||
| 129 | d.setVar('scriptrelpath', scriptrelpath) | 129 | d.setVar('scriptrelpath', scriptrelpath) |
| 130 | 130 | ||
| 131 | # Write out config file for devtool | 131 | # Write out config file for devtool |
| 132 | import ConfigParser | 132 | import configparser |
| 133 | config = ConfigParser.SafeConfigParser() | 133 | config = configparser.SafeConfigParser() |
| 134 | config.add_section('General') | 134 | config.add_section('General') |
| 135 | config.set('General', 'bitbake_subdir', conf_bbpath) | 135 | config.set('General', 'bitbake_subdir', conf_bbpath) |
| 136 | config.set('General', 'init_path', conf_initpath) | 136 | config.set('General', 'init_path', conf_initpath) |
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass index 20d2bef797..5cbf8f07fd 100644 --- a/meta/classes/report-error.bbclass +++ b/meta/classes/report-error.bbclass | |||
| @@ -43,7 +43,7 @@ python errorreport_handler () { | |||
| 43 | data['target_sys'] = e.data.getVar("TARGET_SYS", True) | 43 | data['target_sys'] = e.data.getVar("TARGET_SYS", True) |
| 44 | data['failures'] = [] | 44 | data['failures'] = [] |
| 45 | data['component'] = e.getPkgs()[0] | 45 | data['component'] = e.getPkgs()[0] |
| 46 | data['branch_commit'] = base_detect_branch(e.data) + ": " + base_detect_revision(e.data) | 46 | data['branch_commit'] = str(base_detect_branch(e.data)) + ": " + str(base_detect_revision(e.data)) |
| 47 | lock = bb.utils.lockfile(datafile + '.lock') | 47 | lock = bb.utils.lockfile(datafile + '.lock') |
| 48 | errorreport_savedata(e, data, "error-report.txt") | 48 | errorreport_savedata(e, data, "error-report.txt") |
| 49 | bb.utils.unlockfile(lock) | 49 | bb.utils.unlockfile(lock) |
