diff options
author | Simon Glass <sjg@chromium.org> | 2017-04-12 18:23:26 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-04-13 14:44:49 -0600 |
commit | 9a6d2e2a6b0561732e52bd98e71432a7f4e9b3e2 (patch) | |
tree | 63994da596250fe280a5eb58fbfd727ddc340ca7 /tools | |
parent | b48bfc74ee410b1e6681c620633ffef32aafaba0 (diff) | |
download | u-boot-9a6d2e2a6b0561732e52bd98e71432a7f4e9b3e2.zip u-boot-9a6d2e2a6b0561732e52bd98e71432a7f4e9b3e2.tar.gz u-boot-9a6d2e2a6b0561732e52bd98e71432a7f4e9b3e2.tar.bz2 |
buildman: Handle commit subjects containing unicode
One of these has crept in in this commit:
40a808f1 ARCv2: SLC: Make sure busy bit is set properly on SLC flushing
Adjust buildman to handle it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/buildman/builder.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index 236e061..b0ea57e 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -95,8 +95,9 @@ u-boot/ source directory # Possible build outcomes OUTCOME_OK, OUTCOME_WARNING, OUTCOME_ERROR, OUTCOME_UNKNOWN = range(4) -# Translate a commit subject into a valid filename -trans_valid_chars = string.maketrans("/: ", "---") +# Translate a commit subject into a valid filename (and handle unicode) +trans_valid_chars = string.maketrans('/: ', '---') +trans_valid_chars = trans_valid_chars.decode('latin-1') BASE_CONFIG_FILENAMES = [ 'u-boot.cfg', 'u-boot-spl.cfg', 'u-boot-tpl.cfg' |