1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-30 19:56:14 +01:00

- make sure the buffer is flushed

This commit is contained in:
Marcus Huewe 2010-02-15 23:56:21 +01:00
parent e402064bb2
commit 8df5e1fe38

View File

@ -4629,6 +4629,7 @@ def request_interactive_review(apiurl, request):
tmpfile = tempfile.NamedTemporaryFile() tmpfile = tempfile.NamedTemporaryFile()
tmpfile.write(server_diff(apiurl, request.actions[0].dst_project, request.actions[0].dst_package, None, tmpfile.write(server_diff(apiurl, request.actions[0].dst_project, request.actions[0].dst_package, None,
request.actions[0].src_project, request.actions[0].src_package, request.actions[0].src_rev, True)) request.actions[0].src_project, request.actions[0].src_package, request.actions[0].src_rev, True))
tmpfile.flush()
pager = os.getenv('EDITOR', default='less') pager = os.getenv('EDITOR', default='less')
subprocess.call('%s %s' % (pager, tmpfile.name), shell=True) subprocess.call('%s %s' % (pager, tmpfile.name), shell=True)
elif repl == 'c': elif repl == 'c':