mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-04 20:28:42 +02:00
Use standard method for running editor.
This commit is contained in:
@@ -4941,8 +4941,7 @@ def request_interactive_review(apiurl, request):
|
||||
request.actions[0].src_project, request.actions[0].src_package, request.actions[0].src_rev, True, False)
|
||||
tmpfile.write(diff)
|
||||
tmpfile.flush()
|
||||
pager = os.getenv('EDITOR', default=get_default_editor())
|
||||
subprocess.call('%s %s' % (pager, tmpfile.name), shell=True)
|
||||
run_editor(tmpfile.name)
|
||||
elif repl == 'c':
|
||||
print >>sys.stderr, 'Aborting'
|
||||
raise oscerr.UserAbort()
|
||||
|
Reference in New Issue
Block a user