mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
support $EDITOR with arguments (bnc#619215)
This commit is contained in:
parent
28441bfaeb
commit
d59942c961
@ -2632,8 +2632,10 @@ def run_pager(message):
|
||||
|
||||
def run_editor(filename):
|
||||
editor = os.getenv('EDITOR', default=get_default_editor())
|
||||
cmd = editor.split(' ')
|
||||
cmd.append(filename)
|
||||
|
||||
return subprocess.call([ editor, filename ])
|
||||
return subprocess.call(cmd)
|
||||
|
||||
def edit_message(footer='', template='', templatelen=30):
|
||||
delim = '--This line, and those below, will be ignored--\n'
|
||||
|
Loading…
Reference in New Issue
Block a user