From 8e520903560af5b58dcbf893a52bf4eace8cfb95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 18 Jun 2019 12:56:40 +0300 Subject: [PATCH] Fix generator script to actually handle the y/N question as advertised --- generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator.py b/generator.py index b25433749..cd39285c1 100755 --- a/generator.py +++ b/generator.py @@ -22,7 +22,7 @@ def update_workspace(): with open('Cargo.toml', 'w') as f: f.write(''.join(old_lines)) return success - + if not isfile('./gir/src'): need_rebuild = True @@ -36,7 +36,7 @@ if sys.version_info[0] < 3: else: line = input(question) line = line.strip() -if line.lower() == 'n' or len(line) == 0: +if line.lower() == 'y': need_rebuild = True print('=> Updating gir submodule...') call(['bash', '-c', 'cd gir && git reset --hard HEAD && git pull -f origin master'])