diff options
| author | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-14 21:13:04 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 10:23:23 +0000 |
| commit | c4e2c59088765d1f1de7ec57cde91980f887c2ff (patch) | |
| tree | a2fda8ac5916fb59a711e9220c2177008cca9347 /meta/classes/bugzilla.bbclass | |
| parent | d5e67725ac11e3296cad104470931ffa16824b90 (diff) | |
| download | poky-c4e2c59088765d1f1de7ec57cde91980f887c2ff.tar.gz | |
meta: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
(From OE-Core rev: 7c552996597faaee2fbee185b250c0ee30ea3b5f)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/bugzilla.bbclass')
| -rw-r--r-- | meta/classes/bugzilla.bbclass | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/classes/bugzilla.bbclass b/meta/classes/bugzilla.bbclass index 3fc8956428..6d9a8211f0 100644 --- a/meta/classes/bugzilla.bbclass +++ b/meta/classes/bugzilla.bbclass | |||
| @@ -110,12 +110,12 @@ python bugzilla_eventhandler() { | |||
| 110 | return | 110 | return |
| 111 | 111 | ||
| 112 | if name == "TaskFailed": | 112 | if name == "TaskFailed": |
| 113 | xmlrpc = data.getVar("BUGZILLA_XMLRPC", True) | 113 | xmlrpc = data.getVar("BUGZILLA_XMLRPC") |
| 114 | user = data.getVar("BUGZILLA_USER", True) | 114 | user = data.getVar("BUGZILLA_USER") |
| 115 | passw = data.getVar("BUGZILLA_PASS", True) | 115 | passw = data.getVar("BUGZILLA_PASS") |
| 116 | product = data.getVar("BUGZILLA_PRODUCT", True) | 116 | product = data.getVar("BUGZILLA_PRODUCT") |
| 117 | compon = data.getVar("BUGZILLA_COMPONENT", True) | 117 | compon = data.getVar("BUGZILLA_COMPONENT") |
| 118 | version = data.getVar("BUGZILLA_VERSION", True) | 118 | version = data.getVar("BUGZILLA_VERSION") |
| 119 | 119 | ||
| 120 | proxy = data.getVar('http_proxy', True ) | 120 | proxy = data.getVar('http_proxy', True ) |
| 121 | if (proxy): | 121 | if (proxy): |
| @@ -133,14 +133,14 @@ python bugzilla_eventhandler() { | |||
| 133 | 'component': compon} | 133 | 'component': compon} |
| 134 | 134 | ||
| 135 | # evil hack to figure out what is going on | 135 | # evil hack to figure out what is going on |
| 136 | debug_file = open(os.path.join(data.getVar("TMPDIR", True),"..","bugzilla-log"),"a") | 136 | debug_file = open(os.path.join(data.getVar("TMPDIR"),"..","bugzilla-log"),"a") |
| 137 | 137 | ||
| 138 | file = None | 138 | file = None |
| 139 | bugname = "%(package)s-%(pv)s-autobuild" % { "package" : data.getVar("PN", True), | 139 | bugname = "%(package)s-%(pv)s-autobuild" % { "package" : data.getVar("PN"), |
| 140 | "pv" : data.getVar("PV", True), | 140 | "pv" : data.getVar("PV"), |
| 141 | } | 141 | } |
| 142 | log_file = glob.glob("%s/log.%s.*" % (event.data.getVar('T', True), event.task)) | 142 | log_file = glob.glob("%s/log.%s.*" % (event.data.getVar('T'), event.task)) |
| 143 | text = "The %s step in %s failed at %s for machine %s" % (e.task, data.getVar("PN", True), data.getVar('DATETIME', True), data.getVar( 'MACHINE', True ) ) | 143 | text = "The %s step in %s failed at %s for machine %s" % (e.task, data.getVar("PN"), data.getVar('DATETIME'), data.getVar( 'MACHINE', True ) ) |
| 144 | if len(log_file) != 0: | 144 | if len(log_file) != 0: |
| 145 | print >> debug_file, "Adding log file %s" % log_file[0] | 145 | print >> debug_file, "Adding log file %s" % log_file[0] |
| 146 | file = open(log_file[0], 'r') | 146 | file = open(log_file[0], 'r') |
| @@ -168,7 +168,7 @@ python bugzilla_eventhandler() { | |||
| 168 | 168 | ||
| 169 | if bug_number and log: | 169 | if bug_number and log: |
| 170 | print >> debug_file, "The bug is known as '%s'" % bug_number | 170 | print >> debug_file, "The bug is known as '%s'" % bug_number |
| 171 | desc = "Build log for machine %s" % (data.getVar('MACHINE', True)) | 171 | desc = "Build log for machine %s" % (data.getVar('MACHINE')) |
| 172 | if not bugzilla_create_attachment(debug_file, server, args.copy(), bug_number, text, log_file[0], log, desc): | 172 | if not bugzilla_create_attachment(debug_file, server, args.copy(), bug_number, text, log_file[0], log, desc): |
| 173 | print >> debug_file, "Failed to attach the build log for bug #%s" % bug_number | 173 | print >> debug_file, "Failed to attach the build log for bug #%s" % bug_number |
| 174 | else: | 174 | else: |
