1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

travis: fix build for old protobuf

This commit is contained in:
Pavol Rusnak 2017-09-29 21:01:59 +02:00
parent 8a6dd3c764
commit 4b8ac90d10
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ script:
- make
- make -C bootloader
- make -C fastflash
- sed -i '/, deprecated = true/d' firmware/protob/messages.proto # protobuf 2.5 compatibility :-/
- make -C firmware/protob
- make -C firmware
- make -C demo

View File

@ -25,7 +25,7 @@ def handle_message(message, extension):
bootloader = options.Extensions[wire_bootloader]
tiny = options.Extensions[wire_tiny] and direction == "i"
if options.deprecated:
if getattr(options, 'deprecated', None):
return '\t// Message %s is deprecated' % short_name
if bootloader:
return '\t// Message %s is used in bootloader mode only' % short_name