diff options
author | Sujith H <sujith.h@gmail.com> | 2016-03-08 18:09:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-09 22:42:45 +0000 |
commit | b6141c4d170885d3bdf63074afcb1e41fde0a8f0 (patch) | |
tree | feba8e7902c7222bcf3ddd35a30a2a04360797ab /lib/toaster/bldcontrol/management/commands/runbuilds.py | |
parent | ba011470df0ea8bd89f01c0b02ec4b3969e60ce7 (diff) | |
download | bitbake-contrib-b6141c4d170885d3bdf63074afcb1e41fde0a8f0.tar.gz |
toaster: use force_bytes to display non-ascii project names
When user enters a non-ascii character in the project
name of toaster, the build doesn't get triggered.
Use force_bytes to fix this.
Also deal with non-ascii project names when logging the
build request in runbuilds.
[YOCTO #9071]
Signed-off-by: Sujith H <sujith.h@gmail.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/bldcontrol/management/commands/runbuilds.py')
-rw-r--r-- | lib/toaster/bldcontrol/management/commands/runbuilds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/bldcontrol/management/commands/runbuilds.py b/lib/toaster/bldcontrol/management/commands/runbuilds.py index edf71a7d7..0bd5d0822 100644 --- a/lib/toaster/bldcontrol/management/commands/runbuilds.py +++ b/lib/toaster/bldcontrol/management/commands/runbuilds.py @@ -47,7 +47,7 @@ class Command(NoArgsCommand): logger.debug("runbuilds: No build env") return - logger.debug("runbuilds: starting build %s, environment %s" % (br, bec.be)) + logger.debug("runbuilds: starting build %s, environment %s" % (str(br).decode('utf-8'), bec.be)) # write the build identification variable BRVariable.objects.create(req = br, name="TOASTER_BRBE", value="%d:%d" % (br.pk, bec.be.pk)) |