mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-02-20 04:46:24 +00:00
Fix generator script to actually handle the y/N question as advertised
This commit is contained in:
parent
8a907825e0
commit
8e52090356
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ def update_workspace():
|
||||||
with open('Cargo.toml', 'w') as f:
|
with open('Cargo.toml', 'w') as f:
|
||||||
f.write(''.join(old_lines))
|
f.write(''.join(old_lines))
|
||||||
return success
|
return success
|
||||||
|
|
||||||
|
|
||||||
if not isfile('./gir/src'):
|
if not isfile('./gir/src'):
|
||||||
need_rebuild = True
|
need_rebuild = True
|
||||||
|
@ -36,7 +36,7 @@ if sys.version_info[0] < 3:
|
||||||
else:
|
else:
|
||||||
line = input(question)
|
line = input(question)
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if line.lower() == 'n' or len(line) == 0:
|
if line.lower() == 'y':
|
||||||
need_rebuild = True
|
need_rebuild = True
|
||||||
print('=> Updating gir submodule...')
|
print('=> Updating gir submodule...')
|
||||||
call(['bash', '-c', 'cd gir && git reset --hard HEAD && git pull -f origin master'])
|
call(['bash', '-c', 'cd gir && git reset --hard HEAD && git pull -f origin master'])
|
||||||
|
|
Loading…
Reference in a new issue