mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[FIX] runbot: avoid duplicate ouptut because of Download progress
This commit is contained in:
parent
a7f8c80f50
commit
3ad49f92af
@ -354,7 +354,11 @@ class Dockerfile(models.Model):
|
||||
# identifier changed
|
||||
if image_id != previous_result.identifier:
|
||||
should_save_result = True
|
||||
if previous_result.output != docker_build_result_values['output']: # to discuss
|
||||
def clean_output(output):
|
||||
if not output:
|
||||
return ''
|
||||
return '\n'.join([line for line in output.split('\n') if not line.startswith('Downloading')])
|
||||
if clean_output(previous_result.output) != clean_output(docker_build_result_values['output']): # to discuss
|
||||
should_save_result = True
|
||||
if previous_result.content != docker_build_result_values['content']: # docker image changed
|
||||
should_save_result = True
|
||||
|
@ -1,4 +1,4 @@
|
||||
.o_field_widget.o_field_runbotjsonb {
|
||||
width: 100%;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user