From fec4e12410ca7f1a23ac1c56cad6611d737e33bc Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 12 Nov 2020 20:08:55 +0100 Subject: [PATCH] Run cargo build on gir unless there was a git submodule update failure --- generator.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/generator.py b/generator.py index f5b3216ef..11d550f49 100755 --- a/generator.py +++ b/generator.py @@ -57,13 +57,12 @@ def def_check_submodule(submodule_path): def build_gir_if_needed(updated_submodule): if updated_submodule == FAILURE: return False - elif updated_submodule == NEED_UPDATE or not isfile('./gir/target/release/gir'): - print('=> Building gir...') - if update_workspace() is True: - print('<= Done!') - else: - print('<= Failed...') - return False + print('=> Building gir...') + if update_workspace() is True: + print('<= Done!') + else: + print('<= Failed...') + return False return True def regen_crates(path, level=0):